summaryrefslogtreecommitdiff
path: root/examples/pythonGrammarParser.py
diff options
context:
space:
mode:
authorPaul McGuire <ptmcg@users.noreply.github.com>2018-12-24 20:08:50 -0600
committerGitHub <noreply@github.com>2018-12-24 20:08:50 -0600
commitd5cce29645b3f25526313210485e5ce7096dec63 (patch)
treee7f9404d6d5675308f61e5f26acaaced6e66557f /examples/pythonGrammarParser.py
parent7ee59bf9bec777b5a3f627dc2cfbde637ce9ebfc (diff)
parentdf9b2d50b75ee42663195058f3112e6c440381c5 (diff)
downloadpyparsing-git-d5cce29645b3f25526313210485e5ce7096dec63.tar.gz
Merge pull request #58 from jdufresne/bare-except
Replace bare 'except:' with 'except Exception;'
Diffstat (limited to 'examples/pythonGrammarParser.py')
-rw-r--r--examples/pythonGrammarParser.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/pythonGrammarParser.py b/examples/pythonGrammarParser.py
index aed6bbe..ed6a484 100644
--- a/examples/pythonGrammarParser.py
+++ b/examples/pythonGrammarParser.py
@@ -170,7 +170,7 @@ def makeGroupObject(cls):
def groupAction(s,l,t):
try:
return cls(t[0].asList())
- except:
+ except Exception:
return cls(t)
return groupAction