From 3660a8dc0e8aa00e27314772c797bb00108cab37 Mon Sep 17 00:00:00 2001 From: Satoru SATOH Date: Tue, 2 Jan 2018 23:25:25 +0900 Subject: [PATCH] fix: suppress 'E722 do not use bare except' error --- tests/schema.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/schema.py b/tests/schema.py index e41e490a..912f343a 100644 --- a/tests/schema.py +++ b/tests/schema.py @@ -66,7 +66,7 @@ def test_14_validate__ng_no_safe(self): try: _rc = TT.validate({'a': "aaa"}, self.schema, ac_schema_safe=False) print(_rc) # Should not be reached here... - except: + except Exception: raised = True self.assertTrue(raised)