From 70e9e1fb9f971c78f1666af3fbdd88f42cfcaff0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laura=20Kl=C3=BCnder?= Date: Sat, 2 Dec 2023 03:53:47 +0100 Subject: [PATCH] we have been informed that it is preferably to not spam the logs with errors --- src/c3nav/routing/api.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/c3nav/routing/api.py b/src/c3nav/routing/api.py index 995ccf78..abdcf488 100644 --- a/src/c3nav/routing/api.py +++ b/src/c3nav/routing/api.py @@ -179,7 +179,9 @@ class RoutingViewSet(ViewSet): address="d4:f9:8d:2d:0d:f1" ) except MeshNode.DoesNotExist: - return None + return Response({ + "location": None + }) msg = node.last_messages[MeshMessageType.LOCATE_RANGE_RESULTS] locator = RangeLocator.load()