Update backend.py
This commit is contained in:
parent
ccd69f417b
commit
dd4d311eca
@ -55,7 +55,7 @@ try:
|
||||
if submission.url.split("/")[-1].split(".")[-1] not in ["jpg", "jpeg", "png"]:
|
||||
print("Downoading", submission.url)
|
||||
else:
|
||||
print("Downoading", submission.url, "as", submission.url.split("\\")[-1])
|
||||
print("Downoading", submission.url, "as", submission.url.split("/")[-1])
|
||||
ImgurDownloader(
|
||||
submission.url,
|
||||
"./Images/",
|
||||
@ -106,4 +106,4 @@ try:
|
||||
except NoImage:
|
||||
print("Error: Url doesn't point to an Image")
|
||||
except Exception as E:
|
||||
print("Error: " + type(E).__name__)
|
||||
print("Error: " + type(E).__name__)
|
Loading…
Reference in New Issue
Block a user