1
0
Fork 0
mirror of https://github.com/seanmorley15/AdventureLog.git synced 2025-07-28 17:29:36 +02:00

fix: update request data handling in AdventureImageViewSet and improve error handling in RecommendationsViewSet

This commit is contained in:
Sean Morley 2025-06-05 14:53:08 -04:00
parent 9d817a5ce9
commit ebee6f52e8
3 changed files with 17 additions and 16 deletions

View file

@ -59,8 +59,8 @@ class RecommendationsViewSet(viewsets.ViewSet):
float(request.query_params.get('lat')),
float(request.query_params.get('lon'))
)
except:
pass
except(ValueError, TypeError):
origin = None
for node in nodes:
if node.get('type') not in ['node', 'way', 'relation']: