- exception showyourwork.exceptions.base.ShowyourworkException(message='An error occurred while executing the workflow.', level='error')#
- showyourwork.exceptions.base.custom_excepthook(cls, exc, tb)#
Redirect the exception to the log file.
Disable the traceback from being printed to the screen.
The traceback gets logged to file, unless the logging level is DEBUG, in which case it also gets printed to the screen.
- showyourwork.exceptions.base.redirect_exception(*args, **kwargs)#
Redirect the traceback exception printout to the log file.
Restore traceback printing to the screen.