3
0
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:
James Lu 2019-02-10 13:01:11 -08:00
parent 5731a301ce
commit a9b8bfe94d

View File

@ -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.