Skip to content

Commit

Permalink
Fix bad args on some traceback.format_exc() calls that break in Pytho…
Browse files Browse the repository at this point in the history
…n3 and silently do nothing in Python2. (Fixes #84)
  • Loading branch information
darkvertex authored Mar 3, 2022
1 parent 362b6b9 commit 130a7fe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/shotgunEventDaemon.py
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ def start(self):
self.log.warning("Keyboard interrupt. Cleaning up...")
except Exception as err:
msg = "Crash!!!!! Unexpected error (%s) in main loop.\n\n%s"
self.log.critical(msg, type(err), traceback.format_exc(err))
self.log.critical(msg, type(err), traceback.format_exc())

def _loadEventIdData(self):
"""
Expand Down Expand Up @@ -446,7 +446,7 @@ def _loadEventIdData(self):
except OSError as err:
raise EventDaemonError(
"Could not load event id from file.\n\n%s"
% traceback.format_exc(err)
% traceback.format_exc()
)
else:
# No id file?
Expand Down Expand Up @@ -607,7 +607,7 @@ def _saveEventIdData(self):
self.log.error(
"Can not write event id data to %s.\n\n%s",
eventIdFile,
traceback.format_exc(err),
traceback.format_exc(),
)
break
else:
Expand Down

0 comments on commit 130a7fe

Please sign in to comment.