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):
|
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
|
||||||
|
|
Loading…
Reference in a new issue