You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 25, 2023. It is now read-only.
Looking at the cause for this.
await self.pool_or_conn.get(self.key) returns a string
and self._token.encode() is a b''
The fix is to drop the .encode() i.e new code is.
async def is_owner(self) -> bool:
"""Determine if the instance is the owner of the lock"""
return (
await self.pool_or_conn.get(self.key)
) == self._token # pylint: disable=no-member
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Looking at the cause for this.
await self.pool_or_conn.get(self.key) returns a string
and self._token.encode() is a b''
The fix is to drop the .encode() i.e new code is.
async def is_owner(self) -> bool:
"""Determine if the instance is the owner of the lock"""
return (
await self.pool_or_conn.get(self.key)
) == self._token # pylint: disable=no-member
The text was updated successfully, but these errors were encountered: