ruff: enable upgrade rule checks

This commit is contained in:
Jörg Thalheim
2023-08-27 10:46:53 +02:00
parent bac0942033
commit 9913a95cc2
3 changed files with 3 additions and 3 deletions

View File

@@ -20,7 +20,7 @@ def try_bind_port(port: int) -> bool:
tcp.bind(("127.0.0.1", port))
udp.bind(("127.0.0.1", port))
return True
except socket.error:
except OSError:
return False