From a9b8bfe94de4dc1fb54c34b99a6cd8d991b6c289 Mon Sep 17 00:00:00 2001 From: James Lu Date: Sun, 10 Feb 2019 13:01:11 -0800 Subject: [PATCH] classes: allow _expandPUID() to work when UIDs are ints --- classes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes.py b/classes.py index 62c100e..056f9bd 100644 --- a/classes.py +++ b/classes.py @@ -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.