mirror of
https://github.com/aclist/dztui.git
synced 2026-11-06 10:00:54 +01:00
change: update paths
This commit is contained in:
1 parent
ff068e5396
commit
95daa9163b
5 files changed
+11
-9
No files matched your search
+3
-2
@@ -80,8 +80,9 @@ class CalcDist:
|
||||
if local is None:
|
||||
return None
|
||||
try:
|
||||
remote = get_coords(prefs.paths.ips, remote_ip)
|
||||
except Exception:
|
||||
remote = get_coords(prefs.paths.db, remote_ip)
|
||||
except Exception as e:
|
||||
logger.critical(e)
|
||||
return None
|
||||
|
||||
haversine = Haversine(local.lat, local.lon, remote.lat, remote.lon)
|
||||
|
||||
Reference in new issue
Block a user