handle keyboard interrupt

This commit is contained in:
timeshifter
2022-12-06 14:30:31 +01:00
parent 891f6f3eec
commit 80cfe58be1
+2
View File
@@ -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)