From 9726f0c48b15794620131b95d278d5a37a02034a Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 14 May 2023 23:07:56 +0100 Subject: [PATCH] Extra checks --- inbox.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/inbox.py b/inbox.py index 1373e4ba5..dc9e4be97 100644 --- a/inbox.py +++ b/inbox.py @@ -1209,7 +1209,8 @@ def _person_receive_update(base_dir: str, new_domain_full = get_full_domain(new_domain, new_port) new_nickname = get_nickname_from_actor(person_json['movedTo']) - if prev_domain_full and new_domain: + if prev_nickname and prev_domain_full and new_domain and \ + new_nickname and new_domain_full: new_actor = prev_nickname + '@' + prev_domain_full + ' ' + \ new_nickname + '@' + new_domain_full refollow_str = ''