Skip to content
Snippets Groups Projects
Commit f3f37aaf authored by Sybren A. Stüvel's avatar Sybren A. Stüvel
Browse files

Gracefully handle KeyboardInterrupt being thrown when shutting down

parent dcc36017
No related branches found
No related tags found
No related merge requests found
...@@ -176,6 +176,8 @@ def main(): ...@@ -176,6 +176,8 @@ def main():
except asyncio.TimeoutError: except asyncio.TimeoutError:
log.debug("Timeout waiting for may-I-run task, " log.debug("Timeout waiting for may-I-run task, "
"but that's fine as we're shutting down.") "but that's fine as we're shutting down.")
except KeyboardInterrupt:
log.info('Keyboard interrupt while shutting down, ignoring as we are shutting down.')
fworker.shutdown() fworker.shutdown()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment