Merge branch 'with_suppress' of https://github.com/Luflosi/kitty

This commit is contained in:
Kovid Goyal 2019-10-29 10:17:19 +05:30
commit ab8975f4da
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -4,6 +4,7 @@
import os
import sys
from contextlib import suppress
from kitty.cli import parse_args
@ -30,9 +31,8 @@ def real_main(args):
def main(args):
try:
real_main(args)
except KeyboardInterrupt:
pass
with suppress(KeyboardInterrupt):
real_main(args)
except Exception:
import traceback
traceback.print_exc()