diff options
Diffstat (limited to '')
| -rw-r--r-- | bot/utils/redis_cache.py | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/utils/redis_cache.py b/bot/utils/redis_cache.py index fadbca673..13e88e8e1 100644 --- a/bot/utils/redis_cache.py +++ b/bot/utils/redis_cache.py @@ -120,7 +120,7 @@ class RedisCache:          # Now we convert our unicode string back into the type it originally was.          for prefix, _type in TYPESTRING_PREFIXES:              if value.startswith(prefix): -                return _type(value[2:]) +                return _type(value[len(prefix):])          raise TypeError(f"RedisCache._to_typestring only supports the prefixes {self._valid_typestring_prefixes()}.")      def _dict_from_typestring(self, dictionary: Dict) -> Dict:  |