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:
parent
9d817a5ce9
commit
ebee6f52e8
3 changed files with 17 additions and 16 deletions
|
@ -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']:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue