Fix wrong if condition

This commit is contained in:
Serene-Arc authored and Ali Parlakci committed 2021-04-18 16:44:05 +03:00
1 parent 862121cac6
commit 735833503f
1 file changed
+1
+1
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')