diff --git a/call_server/political_data/data_cache.py b/call_server/political_data/data_cache.py index 41e7e3d3..38b840b1 100644 --- a/call_server/political_data/data_cache.py +++ b/call_server/political_data/data_cache.py @@ -25,7 +25,8 @@ def check_political_data_cache(key, cache=cache): data = adapter.target(cached_obj) offices = adapter.offices(cached_obj) else: - current_app.logger.error('Target.check_political_data_cache got unknown cached_obj type %s for key %s' % (type(cached_obj), key)) + if not key.startswith("custom"): + current_app.logger.error('Target.check_political_data_cache got unknown cached_obj type %s for key %s' % (type(cached_obj), key)) # do it live if cached_obj: data = cached_obj