Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
wong2 committed Jan 15, 2013
1 parent d06b15a commit c1fc812
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions renren.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,9 @@ def getNotifications(self):
r = self.get(url)
try:
result = json.loads(r.text, strict=False)
except:
print 'error'
except Exception, e:
print 'error', e
result = []
return result

def removeNotification(self, notify_id):
Expand Down

0 comments on commit c1fc812

Please sign in to comment.
-