Merge pull request #31 from hansenchris/master

Since reddit can be so random, let's make it try 3 times before saying no.
master
mutantmonkey 2012-04-02 14:14:49 -07:00
commit 5cb4a56cf7
1 changed files with 8 additions and 2 deletions

View File

@ -22,6 +22,12 @@ def randomreddit(phenny, input):
url = "http://www.reddit.com/r/" + subreddit + "/.json" url = "http://www.reddit.com/r/" + subreddit + "/.json"
try:
resp = web.get(url)
except:
try:
resp = web.get(url)
except:
try: try:
resp = web.get(url) resp = web.get(url)
except: except: