From 96642d2255f3757fc64a07880cd3a71abc9528c9 Mon Sep 17 00:00:00 2001 From: Paul Bienkowski Date: Fri, 18 Feb 2022 10:30:43 +0100 Subject: [PATCH] Fix format strings --- api/obs/api/routes/mapdetails.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/obs/api/routes/mapdetails.py b/api/obs/api/routes/mapdetails.py index f05fb43..832ba02 100644 --- a/api/obs/api/routes/mapdetails.py +++ b/api/obs/api/routes/mapdetails.py @@ -25,7 +25,7 @@ def get_single_arg(req, name, default=RAISE, convert=None): value = req.args[name][0] except LookupError as e: if default is RAISE: - raise InvalidUsage("missing `{name}`") from e + raise InvalidUsage(f"missing `{name}`") from e value = default @@ -33,7 +33,7 @@ def get_single_arg(req, name, default=RAISE, convert=None): try: value = convert(value) except (ValueError, TypeError) as e: - raise InvalidUsage("invalid `{name}`") from e + raise InvalidUsage(f"invalid `{name}`") from e return value