chore: Update pre-commit packages (#23173)

This commit is contained in:
Hugh A. Miles II
2023-03-13 17:05:13 -06:00
committed by GitHub
parent 9ae81b7c33
commit b820eb8235
87 changed files with 112 additions and 218 deletions

View File

@@ -114,10 +114,7 @@ def statsd_metrics(f: Callable[..., Any]) -> Callable[..., Any]:
try:
duration, response = time_function(f, self, *args, **kwargs)
except Exception as ex:
if (
hasattr(ex, "status")
and ex.status < 500 # type: ignore # pylint: disable=no-member
):
if hasattr(ex, "status") and ex.status < 500: # pylint: disable=no-member
self.incr_stats("warning", func_name)
else:
self.incr_stats("error", func_name)