mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-07-10 07:22:07 +08:00
manager: clean exit on ctrl-c
This commit is contained in:
@@ -229,6 +229,8 @@ if __name__ == "__main__":
|
||||
|
||||
try:
|
||||
main()
|
||||
except KeyboardInterrupt:
|
||||
print("got CTRL-C, exiting")
|
||||
except Exception:
|
||||
add_file_handler(cloudlog)
|
||||
cloudlog.exception("Manager failed to start")
|
||||
|
||||
Reference in New Issue
Block a user