Added further validation onto the Inbox object

This commit is contained in:
2010-04-30 16:26:33 +01:00
parent d75cf26343
commit 0fde4c2e3f

View File

@@ -53,6 +53,9 @@ class Inbox():
@property
def _inbox_data(self):
if not self.login_cookie:
raise NotLoggedIn
if not hasattr(self, '__inbox_cache'):
inbox = json.load(self._opener.open(self.REDDIT_API_INBOX))['data']