Fix port variable not initialized

This commit is contained in:
Orsiris de Jong 2023-03-01 18:15:29 +01:00
parent d4c7e8229c
commit e1834f8ef8

View file

@ -58,7 +58,7 @@ if __name__ == "__main__":
try:
port = config_dict["http_server"]["port"]
except (TypeError, KeyError):
listen = None
port = None
if _DEV:
import uvicorn