handle keyboard interrupt
This commit is contained in:
1 parent
891f6f3eec
commit
80cfe58be1
1 file changed
+2
@@ -849,6 +849,8 @@ def _verify_running_as_root() -> None:
|
||||
if __name__ == "__main__":
|
||||
try:
|
||||
main()
|
||||
except KeyboardInterrupt:
|
||||
exit(EXIT_ERROR)
|
||||
except Exception as e:
|
||||
print(e)
|
||||
exit(EXIT_ERROR)
|
||||
Reference in new issue
Block a user