mirror of
https://github.com/beetbox/beets.git
synced 2026-01-15 20:51:38 +01:00
Remove blind excepts from bluelet.py
This commit is contained in:
parent
bb5629ea1d
commit
287e077709
1 changed files with 2 additions and 2 deletions
|
|
@ -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())}
|
||||
|
|
|
|||
Loading…
Reference in a new issue