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:
parent
8a371cd18f
commit
73d242485a
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue