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"]:
|
if submission.url.split("/")[-1].split(".")[-1] not in ["jpg", "jpeg", "png"]:
|
||||||
print("Downoading", submission.url)
|
print("Downoading", submission.url)
|
||||||
else:
|
else:
|
||||||
print("Downoading", submission.url, "as", submission.url.split("\\")[-1])
|
print("Downoading", submission.url, "as", submission.url.split("/")[-1])
|
||||||
ImgurDownloader(
|
ImgurDownloader(
|
||||||
submission.url,
|
submission.url,
|
||||||
"./Images/",
|
"./Images/",
|
||||||
@ -106,4 +106,4 @@ try:
|
|||||||
except NoImage:
|
except NoImage:
|
||||||
print("Error: Url doesn't point to an Image")
|
print("Error: Url doesn't point to an Image")
|
||||||
except Exception as E:
|
except Exception as E:
|
||||||
print("Error: " + type(E).__name__)
|
print("Error: " + type(E).__name__)
|
Loading…
Reference in New Issue
Block a user