mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-30 14:49:28 +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)
|
||||
# TODO: stop hardcoding @ as separator
|
||||
if uid and '@' in uid:
|
||||
if uid and isinstance(uid, str) and '@' in uid:
|
||||
if uid in self.users:
|
||||
# UID exists and has a @ in it, meaning it's a PUID (orignick@counter style).
|
||||
# Return this user's nick accordingly.
|
||||
|
Loading…
Reference in New Issue
Block a user