diff --git a/QLiker.py b/QLiker.py index b7a5300..ad5cb05 100644 --- a/QLiker.py +++ b/QLiker.py @@ -150,7 +150,7 @@ def like(unikey,curkey,dataid,time): def MsgHandler(): html=HttpClient_Ist.Get(Referer,Referer) fkey=re.findall(r'
',html) - if fkey is None: + if not fkey: raise Exception, 'Fail to find any feeds' split_string=re.split(r'
',html) for i in range (0,len(fkey)):