mirror of
				https://github.com/TitanEmbeds/Titan.git
				synced 2025-11-04 15:57:02 +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)
 | 
					            self._set_bucket("global_limit_expire", 0)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def _get_bucket(self, key):
 | 
					    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
 | 
					        return value
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def _set_bucket(self, key, value):
 | 
					    def _set_bucket(self, key, value):
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user