3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-01 01:09:22 +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) 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.