Avoid unhandled 500 on problem retrieving admins
parent
6c2f7ba838
commit
9c9b7ec2ed
|
@ -149,7 +149,10 @@ class ActivityPubPM:
|
|||
return None
|
||||
admins = database.find_admins_by_instance(instance)
|
||||
if not admins:
|
||||
try:
|
||||
admins = get_admin_for_software(software, domain)
|
||||
except Exception as err:
|
||||
raise e.BadRequest(f"Failed to retrieve admin list: {err}")
|
||||
else:
|
||||
admins = [a.username for a in admins]
|
||||
if not admins:
|
||||
|
|
Loading…
Reference in New Issue