graphite-project / carbon

Exception caught which does not inherit from Exception PYL-E0712
Bug risk
Critical
4 years ago4 years old
Catching an exception which doesn't inherit from Exception: tuple
27        for retention, expected_exc in retention_map:
28            try:
29                results = parseRetentionDef(retention)
30            except expected_exc.__class__ as exc:31                self.assertEqual(
32                    str(expected_exc),
33                    str(exc),