Updating praw package

This commit is contained in:
Michael Lazar
2017-06-08 21:48:35 -04:00
parent b79eb4a84a
commit 05a61f4fcb
2 changed files with 2 additions and 2 deletions

View File

@@ -10,7 +10,7 @@ from __future__ import absolute_import
import sys
__praw_hash__ = '3bc535e4778047b78d9aeb2e3a5b108f96a091b2'
__praw_hash__ = 'ad0dbcf49d5937ffd39e13e45ebcb404b00c582a'
__praw_bundled__ = True

View File

@@ -113,7 +113,7 @@ class RedditContentObject(object):
def __setattr__(self, name, value):
"""Set the `name` attribute to `value."""
if value and name == 'subreddit':
if value and name == 'subreddit' and isinstance(value, six.string_types):
value = Subreddit(self.reddit_session, value, fetch=False)
elif value and name in REDDITOR_KEYS:
if isinstance(value, bool):