summaryrefslogtreecommitdiff
path: root/coverage/parser.py
diff options
context:
space:
mode:
Diffstat (limited to 'coverage/parser.py')
-rw-r--r--coverage/parser.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/coverage/parser.py b/coverage/parser.py
index 1a2ff5f8..27c17438 100644
--- a/coverage/parser.py
+++ b/coverage/parser.py
@@ -668,6 +668,11 @@ class AstArcAnalyzer(object):
self.process_raise_exits(exits)
if try_block.return_from:
self.process_return_exits(exits)
+ else:
+ # No final body: if there is an `except` handler without a
+ # catch-all, then exceptions can raise from there.
+ if last_handler_start is not None:
+ self.process_raise_exits([last_handler_start])
return exits