fixes: limit no authorization error for sentry (#9816)

* rescue no authorization error

* update no authorization exception to warning
This commit is contained in:
Lily Kuang
2020-05-20 08:48:32 -07:00
committed by GitHub
parent 91f6e708eb
commit 6f1208f510

View File

@@ -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
)