From fe79eb46a77b183eefa3de9e20c4a3b3e7f5921f Mon Sep 17 00:00:00 2001 From: David Tan Date: Sat, 18 Nov 2017 02:44:58 -0500 Subject: [PATCH] Oops it's not a string... it has to be something path-like that implements __fspath__ --- sanic/server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sanic/server.py b/sanic/server.py index d83042eb..8d4b5db2 100644 --- a/sanic/server.py +++ b/sanic/server.py @@ -567,7 +567,7 @@ def serve(host, port, request_handler, error_handler, before_start=None, debug=debug, ) - if isinstance(sock, str): + if hasattr(sock, '__fspath__'): server_coroutine = loop.create_unix_server( server, path=sock,