Skip to content

Commit

Permalink
Fix string/bytes comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
vvd170501 committed Sep 23, 2023
1 parent dc0e516 commit 0a385c1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion kks/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '1.16.27'
__version__ = '1.16.28'
2 changes: 1 addition & 1 deletion kks/util/ejudge.py
Original file line number Diff line number Diff line change
Expand Up @@ -694,7 +694,7 @@ def _request(self, method, url, *args, **kwargs):
# TODO search only if returned page is html
match = self._auth_issues_pattern.search(response.content)
if match:
if match.group(0) == self._invalid_session_error_text:
if match.group(0).decode() == self._invalid_session_error_text:
self._auth()
params['SID'] = self._sids.sid
response = method(url, *args, **kwargs)
Expand Down

0 comments on commit 0a385c1

Please sign in to comment.