该应用程序基于flask和bootstrap 3。我有一个带有选项(data-backdrop =“static”,data-keyboard =“false”)的模式,以防止用户单击或使用转义键时将其关闭。点击被忽略,但转义键会导致烧瓶应用程序崩溃,并带有指示管道损坏的回溯。
我相信 HTML 是正确的。我不确定为什么忽略引导模式选项以及为什么烧瓶应用程序崩溃。
HTML:
<div class="modal fade" role="dialog" id="working-modal"
data-backdrop="static" data-keyboard="false">
<div class="modal-dialog modal-sm" role="document">
<div class="modal-content">
<div class="modal-body">
<h4 class="modal-title text-center">Working</h4>
</div>
</div>
</div>
</div>
日志文件:
File "/home/zinnia/.virtualenvs/px/local/lib/python2.7/site-packages/werkzeug/serving.py", line 499, in serve_forever
HTTPServer.serve_forever(self)
File "/usr/lib/python2.7/SocketServer.py", line 233, in serve_forever
self._handle_request_noblock()
File "/usr/lib/python2.7/SocketServer.py", line 292, in _handle_request_noblock
self.handle_error(request, client_address)
File "/usr/lib/python2.7/SocketServer.py", line 290, in _handle_request_noblock
self.process_request(request, client_address)
File "/usr/lib/python2.7/SocketServer.py", line 318, in process_request
self.finish_request(request, client_address)
File "/usr/lib/python2.7/SocketServer.py", line 331, in finish_request
self.RequestHandlerClass(request, client_address, self)
File "/usr/lib/python2.7/SocketServer.py", line 654, in __init__
self.finish()
File "/usr/lib/python2.7/SocketServer.py", line 713, in finish
self.wfile.close()
File "/usr/lib/python2.7/socket.py", line 283, in close
self.flush()
File "/usr/lib/python2.7/socket.py", line 307, in flush
self._sock.sendall(view[write_offset:write_offset+buffer_size])
socket.error: [Errno 32] Broken pipe