diff --git a/coremods/control.py b/coremods/control.py index 4925e0c..10f4f49 100644 --- a/coremods/control.py +++ b/coremods/control.py @@ -23,7 +23,7 @@ def _shutdown(irc=None): """Shuts down the Pylink daemon.""" global tried_shutdown if tried_shutdown: # We froze on shutdown last time, so immediately abort. - sys.exit(1) + raise KeyboardInterrupt("Forcing shutdown.") tried_shutdown = True