change: update paths

This commit is contained in:
aclist committed 2026-10-31 00:25:32 +09:00
1 parent ff068e5396
commit 95daa9163b
5 files changed
+11 -9

No files matched your search

+3 -2
View File
@@ -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)