Skip to content

Commit

Permalink
fix: check None before returning config
Browse files Browse the repository at this point in the history
  • Loading branch information
mumarkhan999 committed Aug 4, 2023
1 parent 159cff9 commit e8e0073
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config_models/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def current(cls, *args):
"""
cache_key = cls.cache_key_name(*args)
cached_response = TieredCache.get_cached_response(cache_key)
if cached_response.is_found:
if cached_response.is_found and cached_response is not None:
return cached_response.value

key_dict = dict(zip(cls.KEY_FIELDS, args))
Expand Down

0 comments on commit e8e0073

Please sign in to comment.