pmbootstrap.py: Don't print stacktrace when KeyboardInterrupt is caught (MR 2078)

This looks obnoxious and I cannot think of a single time I found it
useful, so let's make it prettier.
This commit is contained in:
Newbyte 2021-07-01 11:47:30 +02:00
parent 8a371cd18f
commit 73d242485a
No known key found for this signature in database
GPG Key ID: 5AE7F5513E0885CB
1 changed files with 5 additions and 1 deletions

View File

@ -6,4 +6,8 @@ import sys
import pmb
if __name__ == "__main__":
sys.exit(pmb.main())
try:
sys.exit(pmb.main())
except KeyboardInterrupt:
print("\nCaught KeyboardInterrupt, exiting …")
sys.exit(130) # SIGINT(2) + 128