Fix ctrlc_return1 to return the wrapped return value.

master
voussoir 2021-08-13 21:31:25 -07:00
parent 14dcbda9fd
commit 6442e8e40c
No known key found for this signature in database
GPG Key ID: 5F7554F8C26DACCB
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ def ctrlc_return1(function):
''' '''
def wrapped(*args, **kwargs): def wrapped(*args, **kwargs):
try: try:
function(*args, **kwargs) return function(*args, **kwargs)
except KeyboardInterrupt: except KeyboardInterrupt:
return 1 return 1
return wrapped return wrapped