Fix logging an error on successful image scrape (#612)

This commit is contained in:
Nathan Rennie-Waldock 2021-09-12 20:05:39 +01:00 committed by GitHub
parent fd17614764
commit 3ec9b5c34d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -70,6 +70,6 @@ def scrape_image(image_url: str, slug: str) -> Path:
filename.unlink(missing_ok=True)
return slug
return Path(slug)
return None