Deal with pylint.

This commit is contained in:
Feanil Patel
2019-12-09 11:03:22 -05:00
parent bf482f4989
commit f485ff450d
2 changed files with 2 additions and 2 deletions

View File

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

View File

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