From 6442e8e40c1c4d77c41fe824e84f3f6181f24758 Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Fri, 13 Aug 2021 21:31:25 -0700 Subject: [PATCH] Fix ctrlc_return1 to return the wrapped return value. --- voussoirkit/pipeable.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/voussoirkit/pipeable.py b/voussoirkit/pipeable.py index 68b820d..b964f4e 100644 --- a/voussoirkit/pipeable.py +++ b/voussoirkit/pipeable.py @@ -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