diff options
| author | 2019-09-11 17:54:55 +0100 | |
|---|---|---|
| committer | 2019-09-11 17:54:55 +0100 | |
| commit | 748008cf360616752375f72e619f741a3b224a6a (patch) | |
| tree | 0e694aba157780d0406748031f7345f464803b7e /modules/title.py | |
| parent | add IRCBot.http_client(), to allow modules to override default http client (diff) | |
| signature | ||
switch to using IRCBot.http_client() in title.py
Diffstat (limited to 'modules/title.py')
| -rw-r--r-- | modules/title.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/title.py b/modules/title.py index dfaf691c..94b5f74f 100644 --- a/modules/title.py +++ b/modules/title.py @@ -26,7 +26,7 @@ class Module(ModuleManager.BaseModule): return None try: - page = utils.http.request(url, parse=True) + page = self.bot.http_client().request(url, parse=True) except utils.http.HTTPWrongContentTypeException: return None except Exception as e: |
