This commit is contained in:
eggplants
2022-02-08 04:22:11 +09:00
parent 99bb782130
commit 2e72bf150a

View File

@@ -188,7 +188,10 @@ class WaybackMachineAvailabilityAPI:
"Archive not found in the availability "
"API response, the URL you requested may not have any archives "
"yet. You may retry after some time or archive the webpage now.\n"
f"Response data:\n{None if self.response is None else self.response.text}"
"Response data:\n"
""
if self.response is None
else self.response.text
)
else:
archive_url = data["archived_snapshots"]["closest"]["url"]