mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-04-27 03:00:12 -04:00
Use getattr for author_id in default subs api
This commit is contained in:
@@ -1301,7 +1301,7 @@ class RedditsController(ListingController):
|
||||
return [
|
||||
sr._fullname
|
||||
for sr in Subreddit.default_subreddits(ids=False)
|
||||
if sr.author_id is not -1
|
||||
if getattr(sr, 'author_id', -1) is not -1
|
||||
]
|
||||
else:
|
||||
reddits = Subreddit._query( write_cache = True,
|
||||
|
||||
Reference in New Issue
Block a user