Fix logged filename for locally cached file

This commit is contained in:
Vonter 2021-06-27 17:43:09 +05:30
parent 31faa1a36c
commit e70166efc2
No known key found for this signature in database
GPG Key ID: 06F3D11E035E214F
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@ class Stitcher:
with urllib.request.urlopen(url) as response, open(os.path.basename(url), 'wb') as downloadedFile:
shutil.copyfileobj(response, downloadedFile)
else:
_logger.info("Locally cached PDF found at %s", url)
_logger.info("Locally cached PDF found at %s", os.path.basename(url))
return os.path.basename(url)
"""