diff options
| author | 2019-11-26 13:41:40 +0000 | |
|---|---|---|
| committer | 2019-11-26 13:42:01 +0000 | |
| commit | 2d21dfa22931bdb887ccccba4a33e6fa4755e94b (patch) | |
| tree | 6ef5e304e3e9a69f9afd66ac0bee4d98ec115399 /modules/wolframalpha.py | |
| parent | remove all `eagle` stuff from nr.py (diff) | |
| signature | ||
utils.http.Response.data should always be `bytes` - add .decode and .soup
Diffstat (limited to 'modules/wolframalpha.py')
| -rw-r--r-- | modules/wolframalpha.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/wolframalpha.py b/modules/wolframalpha.py index 968b05ae..2b5c36fe 100644 --- a/modules/wolframalpha.py +++ b/modules/wolframalpha.py @@ -20,13 +20,13 @@ class Module(ModuleManager.BaseModule): page = utils.http.request(URL_WA, get_params={"i": event["args"], "appid": self.bot.config["wolframalpha-api-key"], - "reinterpret": "true", "units": "metric"}, code=True) + "reinterpret": "true", "units": "metric"}) except utils.http.HTTPTimeoutException: page = None if page: if page.code == 200: - event["stdout"].write("%s: %s" % (event["args"], page.data)) + event["stdout"].write("%s: %s" % (event["args"], page.decode())) else: event["stdout"].write("No results") else: |
