Skip to content

Commit

Permalink
fixed a possible issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Da532 committed May 19, 2018
1 parent 71729c8 commit 41d9bc3
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,10 @@ def post():
file.close()
print(success + f"Uploaded {upload}!")
except:
print(error + f"Failed to upload {upload}. Trying again..")
try:
print(error + f"Failed to upload {upload}. Trying again..")
except:
print(error + "Failed to upload. Trying again..")
builtins._pass = False
pass
# Creates the function for finding and posting files.
Expand Down Expand Up @@ -74,7 +77,10 @@ def reddit():
print(success + f"Uploaded {upload}!")
builtins.attempts = builtins.attempts + 1
except:
print(error + f"Failed to upload {upload}. Trying again..")
try:
print(error + f"Failed to upload {upload}. Trying again..")
except:
print(error + "Failed to upload. Trying again..")
builtins._pass = False
builtins.attempts = builtins.attempts + 1
pass
Expand Down

0 comments on commit 41d9bc3

Please sign in to comment.