Fix logged filename for locally cached file
This commit is contained in:
parent
31faa1a36c
commit
e70166efc2
|
@ -61,7 +61,7 @@ class Stitcher:
|
||||||
with urllib.request.urlopen(url) as response, open(os.path.basename(url), 'wb') as downloadedFile:
|
with urllib.request.urlopen(url) as response, open(os.path.basename(url), 'wb') as downloadedFile:
|
||||||
shutil.copyfileobj(response, downloadedFile)
|
shutil.copyfileobj(response, downloadedFile)
|
||||||
else:
|
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)
|
return os.path.basename(url)
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in New Issue