Fix typo in modules/imgur.py that caused headers passed to utils.http.get_url

to be a set, not a dict. (',' -> ':')
This commit is contained in:
jesopo 2018-10-31 16:17:22 +00:00
parent 0066cb313e
commit bf6a740f7b

View file

@ -10,7 +10,7 @@ class Module(ModuleManager.BaseModule):
def _image_info(self, hash): def _image_info(self, hash):
api_key = self.bot.config["imgur-api-key"] api_key = self.bot.config["imgur-api-key"]
result = utils.http.get_url(URL_IMAGE % hash, result = utils.http.get_url(URL_IMAGE % hash,
headers={"Authorization", "Client-ID %s" % api_key}, headers={"Authorization": "Client-ID %s" % api_key},
json=True) json=True)
if result and result["success"]: if result and result["success"]: