don't crash when software does not return admins
parent
e8252f38b2
commit
776b142f88
|
@ -100,7 +100,10 @@ def ensure_instance_registered(domain, allow_unreachable=False):
|
||||||
else:
|
else:
|
||||||
open_registrations = nodeinfo["openRegistrations"]
|
open_registrations = nodeinfo["openRegistrations"]
|
||||||
email_verify = False
|
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)
|
instance = database.find_instance_by_domain(domain)
|
||||||
if instance:
|
if instance:
|
||||||
return instance, nodeinfo, admin_usernames
|
return instance, nodeinfo, admin_usernames
|
||||||
|
|
Loading…
Reference in New Issue