mirror of
				https://github.com/TitanEmbeds/Titan.git
				synced 2025-11-03 23:37:09 +01:00 
			
		
		
		
	Decode value in getbucket after checking that it is not none
This commit is contained in:
		@@ -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):
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user