Deal with pylint.
This commit is contained in:
@@ -213,7 +213,7 @@ class BlockStructureStore(object):
|
||||
except Exception:
|
||||
# Somehow failed to de-serialized the data, assume it's corrupt.
|
||||
bs_model = self._get_model(root_block_usage_key)
|
||||
logger.exception("BlockStructure: Failed to load data from cache for %s", bs_model)
|
||||
logger.exception(u"BlockStructure: Failed to load data from cache for %s", bs_model)
|
||||
raise BlockStructureNotFound(bs_model.data_usage_key)
|
||||
|
||||
return BlockStructureFactory.create_new(
|
||||
|
||||
@@ -58,7 +58,7 @@ def get_edx_api_data(api_config, resource, api, resource_id=None, querystring=No
|
||||
if cached:
|
||||
try:
|
||||
cached_response = zunpickle(cached)
|
||||
except Exception:
|
||||
except Exception: # pylint: disable=broad-except
|
||||
# Data is corrupt in some way.
|
||||
log.warning("Data for cache is corrupt for cache key %s", cache_key)
|
||||
cache.delete(cache_key)
|
||||
|
||||
Reference in New Issue
Block a user