Merge pull request #31 from hansenchris/master
Since reddit can be so random, let's make it try 3 times before saying no.master
commit
5cb4a56cf7
|
@ -22,6 +22,12 @@ def randomreddit(phenny, input):
|
|||
|
||||
|
||||
url = "http://www.reddit.com/r/" + subreddit + "/.json"
|
||||
try:
|
||||
resp = web.get(url)
|
||||
except:
|
||||
try:
|
||||
resp = web.get(url)
|
||||
except:
|
||||
try:
|
||||
resp = web.get(url)
|
||||
except:
|
||||
|
|
Loading…
Reference in New Issue