Skip to content

Commit

Permalink
Fixed linter error
Browse files Browse the repository at this point in the history
  • Loading branch information
prabhuomkar committed May 8, 2024
1 parent 63e52dc commit 666feb7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion worker/src/providers/places/openstreetmap.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ def __init__(self) -> None:
def reverse_geocode(self, mediaitem_user_id: str, mediaitem_id: str, coordinates: list[float]) -> dict:
"""Reverse geocode location from co-ordinates"""
url = self.url.format(lat=coordinates[0], lon=coordinates[1])
res = requests.get(url=url, headers={'accept-language':'en-GB,en-US','user-agent':'smriti-worker'}, timeout=self.timeout)
res = requests.get(url=url, headers={'accept-language':'en-GB,en-US','user-agent':'smriti-worker'},
timeout=self.timeout)
res.raise_for_status()

body = res.json()
Expand Down

0 comments on commit 666feb7

Please sign in to comment.