From 5e85d26107b7b40446684b8cfbec73c9ad0a1c98 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 15 Jan 2023 09:14:29 +0000 Subject: [PATCH] Check nickname and domain --- relationships.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/relationships.py b/relationships.py index b85783709..7ce81e613 100644 --- a/relationships.py +++ b/relationships.py @@ -264,7 +264,11 @@ def update_moved_actors(base_dir: str, debug: bool) -> None: if not actor_json.get('movedTo'): continue nickname = get_nickname_from_actor(actor_json['movedTo']) + if not nickname: + continue domain, port = get_domain_from_actor(actor_json['movedTo']) + if not domain: + continue domain_full = get_full_domain(domain, port) new_handle = nickname + '@' + domain_full moved_str += handle + ' ' + new_handle + '\n'