added RedirectSaveError - for failed saves if the URL is a permanent … (#93)

* added RedirectSaveError - for failed saves if the URL is a permanent redirect.

* check if url is redirect before throwing exceptions, res.url is the redirect url if redirected at all

* update tests and cli errors
This commit is contained in:
Akash Mahanty
2021-04-02 10:38:17 +05:30
committed by GitHub
parent db8f902cff
commit dd1917c77e
5 changed files with 32 additions and 3 deletions

View File

@@ -225,6 +225,7 @@ class Url:
self.url,
latest_version=self.latest_version,
instance=self,
response=response,
)
m = re.search(