mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-04 18:59:17 +02:00
Improved some error handling
This commit is contained in:
parent
b853f38c74
commit
45132dea75
2 changed files with 12 additions and 3 deletions
|
@ -23,6 +23,7 @@ from funkwhale_api.taskapp import celery
|
|||
|
||||
from . import activity
|
||||
from . import actors
|
||||
from . import exceptions
|
||||
from . import jsonld
|
||||
from . import keys
|
||||
from . import models, signing
|
||||
|
@ -212,7 +213,11 @@ def update_domain_nodeinfo(domain):
|
|||
if service_actor_id
|
||||
else None
|
||||
)
|
||||
except (serializers.serializers.ValidationError, RequestException) as e:
|
||||
except (
|
||||
serializers.serializers.ValidationError,
|
||||
RequestException,
|
||||
exceptions.BlockedActorOrDomain,
|
||||
) as e:
|
||||
logger.warning(
|
||||
"Cannot fetch system actor for domain %s: %s", domain.name, str(e)
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue