소스 검색

fix tornado backend start_server bug

wangweimin 5 년 전
부모
커밋
2f4c4e573c
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      pywebio/platform/tornado.py

+ 1 - 1
pywebio/platform/tornado.py

@@ -86,7 +86,7 @@ def start_server(target, port=0, host='', debug=True,
     kwargs = locals()
     app_options = ['debug', 'websocket_max_message_size', 'websocket_ping_interval', 'websocket_ping_timeout']
     for opt in app_options:
-        if opt is not None:
+        if kwargs[opt] is not None:
             tornado_app_settings[opt] = kwargs[opt]
 
     if port == 0: