replace more '.format(…)' calls with f-strings (#7671)

This commit is contained in:
Mike Fährmann
2025-07-10 21:05:10 +02:00
parent a619638178
commit 096bc6f784
14 changed files with 54 additions and 78 deletions

View File

@@ -354,7 +354,7 @@ class MangadexAPI():
self.extractor.wait(until=until)
continue
msg = ", ".join('{title}: "{detail}"'.format_map(error)
msg = ", ".join(f'{error["title"]}: "{error["detail"]}"'
for error in response.json()["errors"])
raise exception.AbortExtraction(
f"{response.status_code} {response.reason} ({msg})")