mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
fixes: limit no authorization error for sentry (#9816)
* rescue no authorization error * update no authorization exception to warning
This commit is contained in:
@@ -159,7 +159,7 @@ def handle_api_exception(f):
|
||||
try:
|
||||
return f(self, *args, **kwargs)
|
||||
except SupersetSecurityException as ex:
|
||||
logger.exception(ex)
|
||||
logger.warning(ex)
|
||||
return json_errors_response(
|
||||
errors=[ex.error], status=ex.status, payload=ex.payload
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user