diff --git a/webapp/titanembeds/discordrest.py b/webapp/titanembeds/discordrest.py index cf31dae..6695271 100644 --- a/webapp/titanembeds/discordrest.py +++ b/webapp/titanembeds/discordrest.py @@ -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):