diff options
author | Guido van Rossum <guido@python.org> | 2012-10-25 09:14:35 -0700 |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2012-10-25 09:14:35 -0700 |
commit | eac438105d977bedb3e0a20ae2387a62cfafdfd5 (patch) | |
tree | 728a4c7e04102d7e7298bd233924d10e97a799f8 | |
parent | 9825748f419aa5f98ec902ef0d46cbdb0e88f0d1 (diff) | |
download | trollius-eac438105d977bedb3e0a20ae2387a62cfafdfd5.tar.gz |
Tweak assignment order in except clauses.
-rw-r--r-- | scheduling.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scheduling.py b/scheduling.py index 638ef90..d4c3cb6 100644 --- a/scheduling.py +++ b/scheduling.py @@ -60,15 +60,15 @@ class Task: else: next(self.gen) except StopIteration as exc: - self.result = exc.value self.alive = False + self.result = exc.value except Exception as exc: - self.exception = exc self.alive = False + self.exception = exc logging.exception('Uncaught exception in task %r', self.name) except BaseException: - self.exception = exc self.alive = False + self.exception = exc raise else: if self.sched.current is not None: |