Don't call tsdb.for_submission if the subreddit is given.

master
voussoir 2021-11-04 16:35:36 -07:00
parent c981137c9b
commit e938a100a0
No known key found for this signature in database
GPG Key ID: 5F7554F8C26DACCB
1 changed files with 1 additions and 1 deletions

View File

@ -371,7 +371,7 @@ def offline_reading(subreddit=None, username=None, specific_submission=None):
if not specific_submission and not common.is_xor(subreddit, username):
raise exceptions.NotExclusive(['subreddit', 'username'])
if specific_submission and not username:
if specific_submission and not username and not subreddit:
database = tsdb.TSDB.for_submission(specific_submission, do_create=False)
elif subreddit: