mirror of
https://github.com/inventree/InvenTree.git
synced 2026-04-15 07:48:51 +00:00
Catch keyboard interrupts (#11720)
This commit is contained in:
@@ -22,4 +22,8 @@ def main():
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
try:
|
||||
main()
|
||||
except KeyboardInterrupt:
|
||||
print('INVE-W15: Process interrupted by user.')
|
||||
sys.exit(1)
|
||||
|
||||
Reference in New Issue
Block a user