don't crash when software does not return admins

pull/20/head
db0 2023-09-07 20:24:59 +02:00
parent e8252f38b2
commit 776b142f88
1 changed files with 4 additions and 1 deletions

View File

@ -100,7 +100,10 @@ def ensure_instance_registered(domain, allow_unreachable=False):
else:
open_registrations = nodeinfo["openRegistrations"]
email_verify = False
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