Oops it's not a string... it has to be something path-like that implements __fspath__
This commit is contained in:
parent
2782e426e7
commit
fe79eb46a7
|
@ -567,7 +567,7 @@ def serve(host, port, request_handler, error_handler, before_start=None,
|
||||||
debug=debug,
|
debug=debug,
|
||||||
)
|
)
|
||||||
|
|
||||||
if isinstance(sock, str):
|
if hasattr(sock, '__fspath__'):
|
||||||
server_coroutine = loop.create_unix_server(
|
server_coroutine = loop.create_unix_server(
|
||||||
server,
|
server,
|
||||||
path=sock,
|
path=sock,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user