diff options
Diffstat (limited to 'src/test_interrupts.py')
-rw-r--r-- | src/test_interrupts.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test_interrupts.py b/src/test_interrupts.py index 6fb82b4..eee1f0c 100644 --- a/src/test_interrupts.py +++ b/src/test_interrupts.py @@ -83,7 +83,7 @@ else: tryexc_pat = re.compile( r'^(?P<try_or_except>(?P<indent> *)(try|except)( [^\n]*)?:.*)',re.MULTILINE) keyboardint_pat = re.compile(r' *except +([^,],)*KeyboardInterrupt([ ,][^\n]*)?:[^\n]*') -exceptall_pat = re.compile(r' *except *:[^\n]*') +exceptall_pat = re.compile(r' *except(?: *| +Exception *, *[^: ]+):[^\n]*') uncaughtKeyboardInterrupt = 0 for f in files: |