Skip to content
Snippets Groups Projects
Verified Commit c55a926d authored by Eliot Berriot's avatar Eliot Berriot
Browse files

Linting

parent d39edae0
Branches
Tags
No related merge requests found
...@@ -190,7 +190,11 @@ def update_domain_nodeinfo(domain): ...@@ -190,7 +190,11 @@ def update_domain_nodeinfo(domain):
now = timezone.now() now = timezone.now()
try: try:
nodeinfo = {"status": "ok", "payload": fetch_nodeinfo(domain.name)} nodeinfo = {"status": "ok", "payload": fetch_nodeinfo(domain.name)}
except (requests.RequestException, serializers.serializers.ValidationError, ValueError) as e: except (
requests.RequestException,
serializers.serializers.ValidationError,
ValueError,
) as e:
nodeinfo = {"status": "error", "error": str(e)} nodeinfo = {"status": "error", "error": str(e)}
service_actor_id = common_utils.recursive_getattr( service_actor_id = common_utils.recursive_getattr(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment