From 776b142f889c106675d3fcd8ed88f3f1507e25e3 Mon Sep 17 00:00:00 2001 From: db0 Date: Thu, 7 Sep 2023 20:24:59 +0200 Subject: [PATCH] don't crash when software does not return admins --- fediseer/apis/v1/base.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/fediseer/apis/v1/base.py b/fediseer/apis/v1/base.py index 2a9ec25..bfb4219 100644 --- a/fediseer/apis/v1/base.py +++ b/fediseer/apis/v1/base.py @@ -100,7 +100,10 @@ def ensure_instance_registered(domain, allow_unreachable=False): else: open_registrations = nodeinfo["openRegistrations"] email_verify = False - admin_usernames = get_admin_for_software(software, domain) + try: + admin_usernames = get_admin_for_software(software, domain) + except: + admin_usernames = [] instance = database.find_instance_by_domain(domain) if instance: return instance, nodeinfo, admin_usernames