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:
Kasia Kucharczyk
2020-09-21 17:46:08 +02:00
committed by GitHub
parent 88a671153b
commit f01c488664

View File

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