Skip to content

Commit 6294d0b

Browse files
authored
Fixed incompatibility with django_redis >= 4.12.0 (#462)
1 parent d6b7991 commit 6294d0b

File tree

1 file changed

+1
-1
lines changed
  • django_prometheus/cache/backends

1 file changed

+1
-1
lines changed

django_prometheus/cache/backends/redis.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def get(self, key, default=None, version=None, client=None):
2121
django_cache_get_fail_total.labels(backend="redis").inc()
2222
if self._ignore_exceptions:
2323
if self._log_ignored_exceptions:
24-
cache.logger.error(str(e))
24+
self.logger.error(str(e))
2525
return default
2626
raise
2727
else:

0 commit comments

Comments
 (0)