Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'Application' object has no attribute 'named_handlers' #13

Open
BlueHoopor opened this issue May 17, 2017 · 0 comments
Open

'Application' object has no attribute 'named_handlers' #13

BlueHoopor opened this issue May 17, 2017 · 0 comments

Comments

@BlueHoopor
Copy link

BlueHoopor commented May 17, 2017

Tornado has removed named_handlers since 4.5. Maybe need an hasattr test before call.

Here is the Traceback under Tornado 4.5.1:
<torngas.application.Application object at 0x102937290>
Traceback (most recent call last):
File "/Applications/PyCharm.app/Contents/helpers/pydev/pydevd.py", line 2358, in
globals = debugger.run(setup['file'], None, None, is_module)
File "/Applications/PyCharm.app/Contents/helpers/pydev/pydevd.py", line 1778, in run
pydev_imports.execfile(file, globals, locals) # execute the script
File "/Users/xxx/Tornado/runserver.py", line 30, in
server.load_application()
File "/usr/local/lib/python2.7/site-packages/torngas/webserver.py", line 65, in load_application
self._install_application(application)
File "/usr/local/lib/python2.7/site-packages/torngas/webserver.py", line 99, in _install_application
**tornado_conf)
File "/usr/local/lib/python2.7/site-packages/torngas/application.py", line 28, in init
self.middleware_fac.run_init(self)
File "/usr/local/lib/python2.7/site-packages/torngas/middleware/manager.py", line 157, in run_init
func(application)
File "/usr/local/lib/python2.7/site-packages/torngas/httpmodule/httpmodule.py", line 88, in process_init
self.named_handlers = application.named_handlers
AttributeError: 'Application' object has no attribute 'named_handlers'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant