mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 14:52:15 +00:00
Added further validation onto the Inbox object
This commit is contained in:
@@ -53,6 +53,9 @@ class Inbox():
|
|||||||
@property
|
@property
|
||||||
def _inbox_data(self):
|
def _inbox_data(self):
|
||||||
|
|
||||||
|
if not self.login_cookie:
|
||||||
|
raise NotLoggedIn
|
||||||
|
|
||||||
if not hasattr(self, '__inbox_cache'):
|
if not hasattr(self, '__inbox_cache'):
|
||||||
inbox = json.load(self._opener.open(self.REDDIT_API_INBOX))['data']
|
inbox = json.load(self._opener.open(self.REDDIT_API_INBOX))['data']
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user