From adb20fc54f20c9761652765f2c7fee9a706693a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jon=C3=A1=C5=A1=20Jan=C4=8Da=C5=99=C3=ADk?= Date: Tue, 31 Aug 2021 12:58:09 +0200 Subject: [PATCH] Raise error on a 509 response (too many sessions) - linting --- waybackpy/wrapper.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/waybackpy/wrapper.py b/waybackpy/wrapper.py index a274e69..173b0df 100644 --- a/waybackpy/wrapper.py +++ b/waybackpy/wrapper.py @@ -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 ) )