2
0

fix worker class detection

This commit is contained in:
Kilian Krause 2023-07-06 00:20:27 +02:00
parent 9c545d1ace
commit 7f00c93001

View File

@ -9,7 +9,7 @@ import capport.config
def run(config: hypercorn.config.Config) -> None:
sockets = config.create_sockets()
if type(config.worker_class) != 'trio':
if config.worker_class != 'trio':
raise Exception('Invalid worker class received from constructor')
hypercorn.trio.run.trio_worker(config=config, sockets=sockets)