You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2021/09/15 17:45:17 UTC

[GitHub] [superset] villebro commented on a change in pull request #16692: fix: catch all errors when fetching data of datasource

villebro commented on a change in pull request #16692:
URL: https://github.com/apache/superset/pull/16692#discussion_r709420796



##########
File path: superset/views/core.py
##########
@@ -834,7 +834,7 @@ def explore(  # pylint: disable=too-many-locals
         }
         try:
             datasource_data = datasource.data if datasource else dummy_datasource_data
-        except (SupersetException, SQLAlchemyError):
+        except Exception:  # pylint: disable=broad-except

Review comment:
       We should try to avoid catching broad `Exception`s whenever possible. I believe there was a PR for specifying what types of exceptions are to be expected from a db engine spec under normal circumstances. Let me see if I can find it..




-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org