chore: optimize ipv6 strip logic

This commit is contained in:
aclist committed 2026-05-27 15:49:18 +09:00
1 parent b5d9c030dd
commit 9266473853
4 files changed
+39 -64

No files matched your search

-5
View File
@@ -13,11 +13,6 @@ logger = logging.getLogger(APP_NAME)
def get_local_coords(path: "Path") -> Coords | None:
try:
my_ip = get_local_ip()
except Exception as e:
logger.warn(e)
return None
try:
return get_coords(path, my_ip)
except Exception as e:
logger.warn(e)