mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-04 08:49:15 +02:00
Fixed crashing nodeinfo fetching when remote answers with invalid JSON
This commit is contained in:
parent
62939d6826
commit
d39edae061
3 changed files with 3 additions and 3 deletions
|
@ -190,7 +190,7 @@ def update_domain_nodeinfo(domain):
|
|||
now = timezone.now()
|
||||
try:
|
||||
nodeinfo = {"status": "ok", "payload": fetch_nodeinfo(domain.name)}
|
||||
except (requests.RequestException, serializers.serializers.ValidationError) as e:
|
||||
except (requests.RequestException, serializers.serializers.ValidationError, ValueError) as e:
|
||||
nodeinfo = {"status": "error", "error": str(e)}
|
||||
|
||||
service_actor_id = common_utils.recursive_getattr(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue