fix artist color mapping

This commit is contained in:
cwilvx
2025-01-31 12:01:09 +03:00
parent b8ff6070f7
commit d6e8a09aeb
7 changed files with 29 additions and 20 deletions
+4 -1
View File
@@ -22,7 +22,10 @@ def get_ip():
Returns the IP address of this device.
"""
soc = Socket.socket(Socket.AF_INET, Socket.SOCK_DGRAM)
soc.connect(("8.8.8.8", 80))
try:
soc.connect(("8.8.8.8", 80))
except OSError:
return None
ip_address = str(soc.getsockname()[0])
soc.close()