Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #84, bad args on traceback.format_exc() calls #85

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions src/shotgunEventDaemon.py
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,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 @@ -444,8 +444,7 @@ def _loadEventIdData(self):
fh.close()
except OSError as err:
raise EventDaemonError(
"Could not load event id from file.\n\n%s"
% traceback.format_exc(err)
"Could not load event id from file.\n\n%s" % traceback.format_exc()
)
else:
# No id file?
Expand Down Expand Up @@ -606,7 +605,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