Skip to content

Commit

Permalink
Fix a bug
Browse files Browse the repository at this point in the history
if fkey is None: this is always false! We should check fkey is empty by [if not fkey]
  • Loading branch information
zeruniverse committed Sep 15, 2015
1 parent d2dfa2c commit c73c9be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion QLiker.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def like(unikey,curkey,dataid,time):
def MsgHandler():
html=HttpClient_Ist.Get(Referer,Referer)
fkey=re.findall(r'<div class="f-item f-s-i" id=".*?" data-feedsflag=.*?" data-iswupfeed=".*?" data-key="(.*?)" data-specialtype=.*?" data-extend-info=".*?">',html)
if fkey is None:
if not fkey:
raise Exception, 'Fail to find any feeds'
split_string=re.split(r'<div class="f-item f-s-i" id=".*?" data-feedsflag=.*?" data-iswupfeed=".*?" data-key=".*?" data-specialtype=.*?" data-extend-info=".*?">',html)
for i in range (0,len(fkey)):
Expand Down

0 comments on commit c73c9be

Please sign in to comment.