This commit is contained in:
2023-07-31 13:51:41 +03:00
parent d3a4539305
commit c4d69adc43
7 changed files with 165 additions and 2 deletions

View File

@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
import time
import overpass
@@ -233,7 +234,10 @@ def osm_get_country_w_cities_n_airports(country_Dict, area_id):
cities = osm_get_cities_by_country(country_Dict)
for city in cities:
print(f' > {city["name:en"]}')
try:
print(f' > {city["name:en"]}')
except Exception as e:
print(str(e))
if airports_Dict and 'error' in airports_Dict and airports_Dict['error'] == 'timeout':