Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pbiering committed Mar 14, 2024
1 parent 02d1572 commit 2ce7c2a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions radicale/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
"""

import errno
import http
import select
import socket
Expand Down Expand Up @@ -287,9 +286,9 @@ def serve(configuration: config.Configuration,
for AddressPort in hosts:
# retrieve IPv4/IPv6 address of address
try:
getaddrinfo = socket.getaddrinfo(AddressPort[0], AddressPort[1], 0, socket.SOCK_STREAM, socket.IPPROTO_TCP);
getaddrinfo = socket.getaddrinfo(AddressPort[0], AddressPort[1], 0, socket.SOCK_STREAM, socket.IPPROTO_TCP)
except OSError as e:
logger.warn("cannot retrieve IPv4 or IPv6 address of: %s" % (format_address(AddressPort)))
logger.warn("cannot retrieve IPv4 or IPv6 address of '%s': %s" % (format_address(AddressPort), e))
continue
logger.debug("getaddrinfo of '%s': %s" % (format_address(AddressPort), getaddrinfo))
for (AddressFamily, SocketKind, SocketProto, SocketFlags, SocketAddress) in getaddrinfo:
Expand Down

0 comments on commit 2ce7c2a

Please sign in to comment.