Skip to content

Commit

Permalink
fix: catch a proper redis error...
Browse files Browse the repository at this point in the history
  • Loading branch information
mutantsan committed Jul 8, 2024
1 parent 352b325 commit 5387ac2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ckanext/charts/cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ def update_redis_expiration(time: int) -> None:
for key in redis_conn.scan_iter(const.REDIS_PREFIX):
try:
redis_conn.expire(name=key, time=time, lt=True)
except AttributeError:
except TypeError:
redis_conn.expire(name=key, time=time)


Expand Down

0 comments on commit 5387ac2

Please sign in to comment.