diff --git a/src/capport/api/hypercorn_run.py b/src/capport/api/hypercorn_run.py index 294fce6..330ed41 100644 --- a/src/capport/api/hypercorn_run.py +++ b/src/capport/api/hypercorn_run.py @@ -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)