Skip to content

Commit

Permalink
style: Corretta formattazione
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeSavefrogs committed Oct 12, 2023
1 parent c376434 commit edcc847
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/veryeasyfatt/app/process_kml.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,12 @@ def search_location(

if location is None or (isinstance(location, list) and len(location) == 0):
raise Exception(f"Location '{address.title()}' not found")
_location_separator = '\n'

_location_separator = "\n"
if len(location) > 1:
raise Exception(f"Multiple locations found for '{address}':{_location_separator}{_location_separator.join([str(l) for l in location])}")
raise Exception(
f"Multiple locations found for '{address}':{_location_separator}{_location_separator.join([str(l) for l in location])}"
)

return location[0]

Expand All @@ -131,7 +133,7 @@ def get_coordinates(
logger.debug(f"Searching for '{address}'")
location = search_location(address, google_api_key, cache=caching)
logger.debug(f"Found location: {location}")

return (location.longitude, location.latitude, location.altitude)


Expand Down

0 comments on commit edcc847

Please sign in to comment.