Raise error on a 509 response (too many sessions) - linting

This commit is contained in:
Jonáš Jančařík
2021-08-31 12:58:09 +02:00
parent ffb1df87a6
commit adb20fc54f

View File

@@ -230,7 +230,8 @@ class Url:
if response.status_code == 509:
raise WaybackError(
"Can not save '{url}'. You have probably reached the limit of active sessions. Try later.".format(
"Can not save '{url}'. You have probably reached the limit of active "
"sessions. Try later.".format(
url=_cleaned_url(self.url), text=response.text
)
)