From f3e0d4e17c73e5d555274fbcc55646a72296c8eb Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 13 Dec 2020 22:23:39 +0000 Subject: [PATCH] Strip handle --- follow.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/follow.py b/follow.py index 5fe8f9f6..952c1d6f 100644 --- a/follow.py +++ b/follow.py @@ -50,8 +50,9 @@ def createInitialLastSeen(baseDir: str, httpPrefix: str) -> None: continue if '@' not in handle: continue + handle = handle.strip() nickname = handle.split('@')[0] - domain = handle.split('@')[1].strip() + domain = handle.split('@')[1] actor = \ httpPrefix + '://' + \ nickname + '@' + domain + '/users/' + nickname