mirror of
https://github.com/apache/superset.git
synced 2026-04-19 16:14:52 +00:00
fix: setting specific exceptions common/query_context.py (#10942)
* Specified an exceptions in reading cache in `get_df_payload()` method * Reverted change after review: - added broad exception in `get_df_payload` method
This commit is contained in:
@@ -224,7 +224,7 @@ class QueryContext:
|
||||
status = utils.QueryStatus.SUCCESS
|
||||
is_loaded = True
|
||||
stats_logger.incr("loaded_from_cache")
|
||||
except Exception as ex: # pylint: disable=broad-except
|
||||
except KeyError as ex:
|
||||
logger.exception(ex)
|
||||
logger.error(
|
||||
"Error reading cache: %s", utils.error_msg_from_exception(ex)
|
||||
|
||||
Reference in New Issue
Block a user