Fix ctrlc_return1 to return the wrapped return value.
This commit is contained in:
parent
14dcbda9fd
commit
6442e8e40c
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue