MCPcopy Index your code
hub / github.com/HelloZeroNet/ZeroNet / handleErrorNotify

Function handleErrorNotify

src/Debug/DebugHook.py:48–54  ·  view source on GitHub ↗
(*args, **kwargs)

Source from the content-addressed store, hash-verified

46
47# Ignore notify errors
48def 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
57if config.debug: # Keep last error for /Debug

Callers

nothing calls this directly

Calls 2

shutdownFunction · 0.85
errorMethod · 0.80

Tested by

no test coverage detected