mirror of
https://github.com/apache/superset.git
synced 2026-04-20 08:34:37 +00:00
chore: Update pre-commit packages (#23173)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user