suddjian commented on a change in pull request #14036:
URL: https://github.com/apache/superset/pull/14036#discussion_r610152908



##########
File path: superset/views/base.py
##########
@@ -166,6 +167,9 @@ def api(f: Callable[..., FlaskResponse]) -> Callable[..., 
FlaskResponse]:
     def wraps(self: "BaseSupersetView", *args: Any, **kwargs: Any) -> 
FlaskResponse:
         try:
             return f(self, *args, **kwargs)
+        except NoAuthorizationError as ex: # pylint: disable=broad-except
+            logger.exception(ex)            

Review comment:
       We probably don't want to log this as an exception, since it's not a 
server error.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to