Merge pull request #183 from bbeng89/develop
Bug fixes in reddit and github plugins
This commit is contained in:
commit
f51bcf4ecf
2 changed files with 4 additions and 4 deletions
|
@ -52,7 +52,7 @@ def reddit(inp):
|
|||
data = data["data"]["children"]
|
||||
|
||||
# get the requested/random post
|
||||
if id_num:
|
||||
if id_num != None:
|
||||
try:
|
||||
item = data[id_num]["data"]
|
||||
except IndexError:
|
||||
|
|
Reference in a new issue