AttributeError
AttributeError: 'bool' object has no attribute '__call__'
Traceback (most recent call last)
File "/var/www/Reptile/trainTicketsSpriderV2/flask/lib/python2.7/site-packages/flask/app.py", line 1836, in __call__
return self.wsgi_app(environ, start_response)
File "/var/www/Reptile/trainTicketsSpriderV2/flask/lib/python2.7/site-packages/flask/app.py", line 1820, in wsgi_app
response = self.make_response(self.handle_exception(e))
File "/var/www/Reptile/trainTicketsSpriderV2/flask/lib/python2.7/site-packages/flask/app.py", line 1403, in handle_exception
Display the sourcecode for this frameOpen an interactive python shell in this framereraise(exc_type, exc_value, tb)
File "/var/www/Reptile/trainTicketsSpriderV2/flask/lib/python2.7/site-packages/flask/app.py", line 1817, in wsgi_app
response = self.full_dispatch_request()
异常提示里有说:
布尔值
bool
对象没有一个叫作__call__
的属性。检查一下哪里返回了一个
bool
值,然后你 call/调用 它了。