Added logging and error handling for posts and comments.

This commit is contained in:
Michael Lazar
2015-04-05 18:29:12 -07:00
parent fea3540587
commit ea1230d30c
4 changed files with 32 additions and 13 deletions

View File

@@ -261,7 +261,7 @@ class SubredditContent(BaseContent):
display_name += '/{}'.format(order)
if name == 'me':
if not self.reddit.is_logged_in():
if not reddit.is_logged_in():
raise AccountError
else:
submissions = reddit.user.get_submitted(sort=order)