Oops, allow specific_submission to suppress -r -u requirement.

This commit is contained in:
Ethan Dalool 2018-03-22 16:26:27 -07:00
parent 394aa6ec16
commit fe7d5534e8

View file

@ -18,8 +18,9 @@ def commentaugment(
Take the IDs of collected submissions, and gather comments from those threads. Take the IDs of collected submissions, and gather comments from those threads.
Please see the global DOCSTRING_COMMENTAUGMENT variable. Please see the global DOCSTRING_COMMENTAUGMENT variable.
''' '''
if not common.is_xor(subreddit, username): if specific_submission is None:
raise exceptions.NotExclusive(['subreddit', 'username']) if not common.is_xor(subreddit, username):
raise exceptions.NotExclusive(['subreddit', 'username'])
common.r = common.bot.login(common.r) common.r = common.bot.login(common.r)
if specific_submission is not None: if specific_submission is not None: