Skip to content

Commit

Permalink
add 404 branch
Browse files Browse the repository at this point in the history
  • Loading branch information
log2 committed Aug 5, 2024
1 parent c38375b commit 718c0fa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ def try_download_and_upload_img(path, name, url):
return "1"
if "502" in response.text:
return "0"
if response.status_code == "404":
return "1"
return response.status_code, response.text
except:
return "t"
Expand Down

0 comments on commit 718c0fa

Please sign in to comment.