Module exception_handler
A top level exception handler that writes uncaught exceptions to a
folder in .schrodinger. The user is informed of the error and told to
contact customer service.
To activate the exception handler on customer machines but not on
developer machines, use exception_handler.enable_if_requested(). That will
activate the exception handler only if the environment variable
SCHRODINGER_DEV_DEBUG is not defined.
To activate the exception handler regardless of environment variables,
use exception_handler.enable_handler(). To deactivate it,
use exception_handler.reset_handler()
.
|
ExceptionRecorder
A top level exception handler that writes uncaught exceptions to a
folder in .schrodinger.
|
|
|
|
enable_if_requested()
Enable the exception handler unless SCHRODINGER_DEV_DEBUG is set. |
|
|
|
maestro = None
|
|
handler = ExceptionRecorder()
|
|
__package__ = ' schrodinger.infra '
|
enable_handler(enable=True)
|
|
Enable or disable the exception handler.
- Parameters:
enable (bool) - If True, the exception handler will be enabled. If False, the
standard Python exception handler will be enabled.
|