summaryrefslogtreecommitdiff
path: root/ishtar_common/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'ishtar_common/utils.py')
-rw-r--r--ishtar_common/utils.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/ishtar_common/utils.py b/ishtar_common/utils.py
index 3a3c53853..91591e0b2 100644
--- a/ishtar_common/utils.py
+++ b/ishtar_common/utils.py
@@ -399,7 +399,8 @@ def get_cache(cls, extra_args=tuple(), app_label=None):
):
cls._add_cache_key_to_refresh(extra_args)
if len(cache_key) >= 250:
- m = hashlib.md5()
+ # nosec: used for a cache key no consequence if predictable
+ m = hashlib.md5() # nosec
m.update(cache_key)
cache_key = m.hexdigest()
return cache_key, cache.get(cache_key)