mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2024-12-23 21:47:04 +01:00
Decode value in getbucket after checking that it is not none
This commit is contained in:
parent
348580dcbb
commit
9a258be2d7
@ -25,7 +25,9 @@ class DiscordREST:
|
||||
self._set_bucket("global_limit_expire", 0)
|
||||
|
||||
def _get_bucket(self, key):
|
||||
value = redis_store.get(self.global_redis_prefix + key).decode("utf-8")
|
||||
value = redis_store.get(self.global_redis_prefix + key)
|
||||
if value:
|
||||
value = value.decode("utf-8")
|
||||
return value
|
||||
|
||||
def _set_bucket(self, key, value):
|
||||
|
Loading…
Reference in New Issue
Block a user