Skip to content

Commit

Permalink
don't log errors for cache lookup of custom keys
Browse files Browse the repository at this point in the history
  • Loading branch information
jlev committed Oct 28, 2020
1 parent 47a9ed5 commit 3ff266e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion call_server/political_data/data_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3ff266e

Please sign in to comment.