diff options
author | Brennan Ashton <bashton@brennanashton.com> | 2018-11-14 18:16:58 -0800 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2018-11-15 15:44:05 -0800 |
commit | 293708b1cb8bd983cc6a97dd75fa8cb55317095c (patch) | |
tree | aeb3ac0528718e3459309c6021784019c266f205 /grc/core/blocks/block.py | |
parent | 46e7260f8984c27ea752bb83715c770a69a4b606 (diff) |
grc: Improve exception handling (bare and unnecessary)
Diffstat (limited to 'grc/core/blocks/block.py')
-rw-r--r-- | grc/core/blocks/block.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/grc/core/blocks/block.py b/grc/core/blocks/block.py index 0cb3f61237..c3502397ec 100644 --- a/grc/core/blocks/block.py +++ b/grc/core/blocks/block.py @@ -144,7 +144,7 @@ class Block(Element): try: if not self.evaluate(expr): self.add_error_message('Assertion "{}" failed.'.format(expr)) - except: + except Exception: self.add_error_message('Assertion "{}" did not evaluate.'.format(expr)) def _validate_generate_mode_compat(self): |