fixed location api endpoint to not break if user can't be located
This commit is contained in:
parent
a4f363a9f2
commit
1c8c01530b
1 changed files with 1 additions and 1 deletions
|
@ -47,7 +47,7 @@ def get_position(request, parameters: LocateRequestSchema):
|
||||||
raise
|
raise
|
||||||
|
|
||||||
return {
|
return {
|
||||||
"location": location.serialize(simple_geometry=True),
|
"location": location.serialize(simple_geometry=True) if location else None,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue