diff options
| author | 2019-10-01 11:34:21 -0400 | |
|---|---|---|
| committer | 2019-10-01 11:37:03 -0400 | |
| commit | 7bc7be9a6f1e60913d0bbbde8980af657e493177 (patch) | |
| tree | ccba67d1312a448fe7ba533a3cfa232b358c9c53 | |
| parent | Update bot/cogs/doc.py (diff) | |
Update docs cog docstring & fix URL converter attribute error
Diffstat (limited to '')
| -rw-r--r-- | bot/cogs/doc.py | 6 | ||||
| -rw-r--r-- | bot/converters.py | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/bot/cogs/doc.py b/bot/cogs/doc.py index 40b31f90c..c9e6b3b91 100644 --- a/bot/cogs/doc.py +++ b/bot/cogs/doc.py @@ -319,9 +319,9 @@ class Doc(commands.Cog): Example: !docs set \ - discord \ - https://discordpy.readthedocs.io/en/rewrite/ \ - https://discordpy.readthedocs.io/en/rewrite/objects.inv + python \ + https://docs.python.org/3/ \ + https://docs.python.org/3/objects.inv """ body = { 'package': package_name, diff --git a/bot/converters.py b/bot/converters.py index 339da7b60..6d6453486 100644 --- a/bot/converters.py +++ b/bot/converters.py @@ -49,7 +49,7 @@ class ValidURL(Converter): async with ctx.bot.http_session.get(url) as resp: if resp.status != 200: raise BadArgument( - f"HTTP GET on `{url}` returned status `{resp.status_code}`, expected 200" + f"HTTP GET on `{url}` returned status `{resp.status}`, expected 200" ) except CertificateError: if url.startswith('https'): |