diff --git a/openedx/core/djangoapps/content/block_structure/store.py b/openedx/core/djangoapps/content/block_structure/store.py index 43de5cc478..b35b92f61b 100644 --- a/openedx/core/djangoapps/content/block_structure/store.py +++ b/openedx/core/djangoapps/content/block_structure/store.py @@ -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( diff --git a/openedx/core/lib/edx_api_utils.py b/openedx/core/lib/edx_api_utils.py index 3c9ca66f42..237c7b5ac5 100644 --- a/openedx/core/lib/edx_api_utils.py +++ b/openedx/core/lib/edx_api_utils.py @@ -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)