Fix wrong if condition

This commit is contained in:
Serene-Arc
2021-03-08 12:52:53 +10:00
committed by Ali Parlakci
parent 862121cac6
commit 735833503f

View File

@@ -181,6 +181,7 @@ class RedditDownloader:
return [] return []
def _get_user_data(self) -> list[Iterator]: def _get_user_data(self) -> list[Iterator]:
if any([self.args.submitted, self.args.upvoted, self.args.saved]):
if self.args.user: if self.args.user:
if not self._check_user_existence(self.args.user): if not self._check_user_existence(self.args.user):
raise errors.RedditUserError(f'User {self.args.user} does not exist') raise errors.RedditUserError(f'User {self.args.user} does not exist')