aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Numerlor <[email protected]>2021-04-01 20:04:12 +0200
committerGravatar GitHub <[email protected]>2021-04-01 20:04:12 +0200
commite2f80e6914adefee712992fa56540872aef45468 (patch)
treead50dbac60273d49eadce14d822c6988710c9bd8
parentEnsure the base url ends with a slash (diff)
Add missing 'attempts'
Co-authored-by: Kieran Siek <[email protected]>
-rw-r--r--bot/converters.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/bot/converters.py b/bot/converters.py
index 6ea2d887b..3bf05cfb3 100644
--- a/bot/converters.py
+++ b/bot/converters.py
@@ -192,7 +192,9 @@ class Inventory(Converter):
"""Convert url to Intersphinx inventory URL."""
await ctx.trigger_typing()
if (inventory := await _inventory_parser.fetch_inventory(url)) is None:
- raise BadArgument(f"Failed to fetch inventory file after {_inventory_parser.FAILED_REQUEST_ATTEMPTS}.")
+ raise BadArgument(
+ f"Failed to fetch inventory file after {_inventory_parser.FAILED_REQUEST_ATTEMPTS} attempts."
+ )
return url, inventory