From 287e077709c4ef20a6d02126c2a0a13bb908b2b7 Mon Sep 17 00:00:00 2001 From: wordofglass Date: Thu, 28 Apr 2016 19:27:02 +0200 Subject: [PATCH] Remove blind excepts from bluelet.py --- beets/util/bluelet.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/beets/util/bluelet.py b/beets/util/bluelet.py index 48dd7bd94..0da17559b 100644 --- a/beets/util/bluelet.py +++ b/beets/util/bluelet.py @@ -269,7 +269,7 @@ def run(root_coro): except StopIteration: # Thread is done. complete_thread(coro, None) - except: + except BaseException: # Thread raised some other exception. del threads[coro] raise ThreadException(coro, sys.exc_info()) @@ -366,7 +366,7 @@ def run(root_coro): exit_te = te break - except: + except BaseException: # For instance, KeyboardInterrupt during select(). Raise # into root thread and terminate others. threads = {root_coro: ExceptionEvent(sys.exc_info())}