Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed Inappropriate Logical Expression #1315

Merged
merged 1 commit into from
Dec 11, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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