Fix ctrlc_return1 to return the wrapped return value.

This commit is contained in:
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

View file

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