mirror of
https://github.com/aclist/dztui.git
synced 2026-10-30 22:52:42 +01:00
chore: optimize ipv6 strip logic
This commit is contained in:
1 parent
b5d9c030dd
commit
9266473853
4 files changed
+39
-64
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user