summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2012-10-29 16:04:21 -0700
committerGuido van Rossum <guido@python.org>2012-10-29 16:04:21 -0700
commite5a1b8f6459ae88a313c44e9535cc6665ea76e71 (patch)
tree81705852522f4d6e02fb82add94be5ef8fc9bf22
parentabc740276155225e1fe4838d9f00f2db0155ee6f (diff)
downloadtrollius-e5a1b8f6459ae88a313c44e9535cc6665ea76e71.tar.gz
Fix bad code in except handler.
-rw-r--r--scheduling.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scheduling.py b/scheduling.py
index 34078f2..e809b33 100644
--- a/scheduling.py
+++ b/scheduling.py
@@ -119,7 +119,7 @@ class Task:
self.exception = exc
logging.debug('Uncaught exception in task %r', self.name,
exc_info=True, stack_info=True)
- except BaseException:
+ except BaseException as exc:
self.alive = False
self.exception = exc
raise