Skip to content

Commit

Permalink
Fixed Inappropriate Logical Expression (#1315)
Browse files Browse the repository at this point in the history
Signed-off-by: fazledyn-or <ataf@openrefactory.com>
  • Loading branch information
fazledyn-or authored Dec 11, 2023
1 parent 38e13de commit eace55a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PixivBrowserFactory.py
Original file line number Diff line number Diff line change
Expand Up @@ -693,7 +693,7 @@ def getMemberInfoWhitecube(self, member_id, artist, bookmark=False):
self._put_to_cache(url, info)
else:
PixivHelper.print_and_log('info', f'Using OAuth to retrieve member info for: {member_id}')
if self._username is None or self._password is None or len(self._username) < 0 or len(self._password) < 0:
if not self._username or not self._password:
raise PixivException("Empty Username or Password, remove cookie value and relogin, or add username/password to config.ini.")

url = f'https://app-api.pixiv.net/v1/user/detail?user_id={member_id}'
Expand Down

0 comments on commit eace55a

Please sign in to comment.