mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #46732 from rallytime/bp-46032
Back-port #46032 to 2017.7
This commit is contained in:
commit
1222bdbc00
1 changed files with 6 additions and 1 deletions
|
@ -43,7 +43,12 @@ def _handle_interrupt(exc, original_exc, hardfail=False, trace=''):
|
|||
|
||||
|
||||
def _handle_signals(client, signum, sigframe):
|
||||
trace = traceback.format_exc()
|
||||
try:
|
||||
# This raises AttributeError on Python 3.4 and 3.5 if there is no current exception.
|
||||
# Ref: https://bugs.python.org/issue23003
|
||||
trace = traceback.format_exc()
|
||||
except AttributeError:
|
||||
trace = ''
|
||||
try:
|
||||
hardcrash = client.options.hard_crash
|
||||
except (AttributeError, KeyError):
|
||||
|
|
Loading…
Add table
Reference in a new issue