Add some coverage exemptions

This commit is contained in:
Cristi Vîjdea
2018-05-30 22:33:36 +03:00
parent ecee6f8177
commit cc90bc1544
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -95,7 +95,7 @@ class EndpointEnumerator(_EndpointEnumerator):
for method in self.get_allowed_methods(callback):
endpoint = (path, method, callback)
api_endpoints.append(endpoint)
except Exception:
except Exception: # pragma: no cover
logger.warning('failed to enumerate view', exc_info=True)
elif isinstance(pattern, URLResolver):