(*args, **kwargs)
| 46 | |
| 47 | # Ignore notify errors |
| 48 | def handleErrorNotify(*args, **kwargs): |
| 49 | err = args[0] |
| 50 | if err.__name__ == "KeyboardInterrupt": |
| 51 | shutdown("Keyboard interrupt") |
| 52 | elif err.__name__ != "Notify": |
| 53 | logging.error("Unhandled exception: %s" % [args]) |
| 54 | sys.__excepthook__(*args, **kwargs) |
| 55 | |
| 56 | |
| 57 | if config.debug: # Keep last error for /Debug |