Commit a8ba601b authored by Dom Sekotill's avatar Dom Sekotill
Browse files

Use a nicer looking context to suppress KeyboardInterrupt

parent eec908f0
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -46,7 +46,6 @@ def main():


def mainwrap():
	try:
	from contextlib import suppress
	with suppress(KeyboardInterrupt):
		main()
	except KeyboardInterrupt:
		pass