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:
parent
0066cb313e
commit
bf6a740f7b
1 changed files with 1 additions and 1 deletions
|
@ -10,7 +10,7 @@ class Module(ModuleManager.BaseModule):
|
|||
def _image_info(self, hash):
|
||||
api_key = self.bot.config["imgur-api-key"]
|
||||
result = utils.http.get_url(URL_IMAGE % hash,
|
||||
headers={"Authorization", "Client-ID %s" % api_key},
|
||||
headers={"Authorization": "Client-ID %s" % api_key},
|
||||
json=True)
|
||||
|
||||
if result and result["success"]:
|
||||
|
|
Loading…
Reference in a new issue