From e11e65ea457ff7239db270a0901b37407824c90f Mon Sep 17 00:00:00 2001 From: Tristan Date: Fri, 24 Jul 2020 00:26:33 +0200 Subject: [PATCH] Don't use a bare except clause. --- python/planout/ops/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/planout/ops/utils.py b/python/planout/ops/utils.py index 710cef9..84c6ef4 100644 --- a/python/planout/ops/utils.py +++ b/python/planout/ops/utils.py @@ -92,7 +92,7 @@ def pretty(params): try: # if an op is invalid, we may not be able to pretty print it my_pretty = Operators.operatorInstance(params).pretty() - except: + except AssertionError: my_pretty = params return my_pretty elif type(params) is list: