aboutsummaryrefslogtreecommitdiffstats
path: root/main.py
diff options
context:
space:
mode:
authorAlex Schofield <git@ajschof.me>2026-04-27 22:02:40 +0100
committerAlex Schofield <git@ajschof.me>2026-04-27 22:02:40 +0100
commit016b835dcd90e7dd4f7b4534d15376b6f6bd3e85 (patch)
tree85fedebe9374898101cc6ee6cdf4e0e1e03e9ef9 /main.py
parent43f4236822b7de75c5b390137cd56c93616b5f52 (diff)
downloadfuelnearme-016b835dcd90e7dd4f7b4534d15376b6f6bd3e85.tar.gz
fuelnearme-016b835dcd90e7dd4f7b4534d15376b6f6bd3e85.zip
fix typo in raise statement in get_location()
Diffstat (limited to 'main.py')
-rw-r--r--main.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.py b/main.py
index dd54d37..9d9217c 100644
--- a/main.py
+++ b/main.py
@@ -36,7 +36,7 @@ def get_location(address: str) -> tuple[float, float]:
geolocator = Nominatim(user_agent="FuelNearMe")
result = geolocator.geocode(address)
if not isinstance(result, Location):
- raise ValueError(f"Failed to get location from address: '{address}")
+ raise ValueError(f"Failed to get location from address: '{address}'")
return (result.latitude, result.longitude)
git.ajschof.me — hosted by ajschofield — powered by cgit