mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 06:42:16 +00:00
Added further validation onto the Inbox object
This commit is contained in:
@@ -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']
|
||||
|
||||
|
||||
Reference in New Issue
Block a user