mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-27 21:19:31 +01:00
classes: allow _expandPUID() to work when UIDs are ints
This commit is contained in:
parent
5731a301ce
commit
a9b8bfe94d
@ -1507,7 +1507,7 @@ class PyLinkNetworkCoreWithUtils(PyLinkNetworkCore):
|
|||||||
"""
|
"""
|
||||||
log.debug('(%s) _expandPUID: got uid %s', self.name, uid)
|
log.debug('(%s) _expandPUID: got uid %s', self.name, uid)
|
||||||
# TODO: stop hardcoding @ as separator
|
# TODO: stop hardcoding @ as separator
|
||||||
if uid and '@' in uid:
|
if uid and isinstance(uid, str) and '@' in uid:
|
||||||
if uid in self.users:
|
if uid in self.users:
|
||||||
# UID exists and has a @ in it, meaning it's a PUID (orignick@counter style).
|
# UID exists and has a @ in it, meaning it's a PUID (orignick@counter style).
|
||||||
# Return this user's nick accordingly.
|
# Return this user's nick accordingly.
|
||||||
|
Loading…
Reference in New Issue
Block a user