handle keyboard interrupt
This commit is contained in:
@@ -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