diff options
| author | 2018-10-31 16:17:22 +0000 | |
|---|---|---|
| committer | 2018-10-31 16:17:22 +0000 | |
| commit | bf6a740f7bcf3f1d21f78e67a0ed8a6b167c499f (patch) | |
| tree | 2f2121d0f48b96a1d16db5b49ef1a0355cd86fe1 | |
| parent | REGEX_IMAGE should be a compiled regex! (diff) | |
| signature | ||
Fix typo in modules/imgur.py that caused `headers` passed to utils.http.get_url
to be a set, not a dict. (',' -> ':')
| -rw-r--r-- | modules/imgur.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/imgur.py b/modules/imgur.py index cc0522e6..d37f0562 100644 --- a/modules/imgur.py +++ b/modules/imgur.py @@ -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"]: |
