ralfonso / theory

Python web based MPD client with a pretty face and some ajax where it makes sense
http://theory.steelbreeze.org/
MIT License
34 stars 12 forks source link

"KeyError: Album" for no album :P #3

Closed neoice closed 14 years ago

neoice commented 14 years ago

URL: http://192.168.10.1:9099/tracks?artist=4%20Hero&album= File '/root/_INSTALLED/theory/env/lib/python2.5/site-packages/WebError-0.10.1-py2.5.egg/weberror/evalexception.py', line 431 in respond app_iter = self.application(environ, detect_start_response) File '/root/_INSTALLED/theory/env/lib/python2.5/site-packages/Beaker-1.4.1-py2.5.egg/beaker/middleware.py', line 73 in call return self.app(environ, start_response) File '/root/_INSTALLED/theory/env/lib/python2.5/site-packages/Beaker-1.4.1-py2.5.egg/beaker/middleware.py', line 152 in call return self.wrap_app(environ, session_start_response) File '/root/_INSTALLED/theory/env/lib/python2.5/site-packages/Routes-1.10.3-py2.5.egg/routes/middleware.py', line 130 in call response = self.app(environ, start_response) File '/root/_INSTALLED/theory/env/lib/python2.5/site-packages/Pylons-0.9.7-py2.5.egg/pylons/wsgiapp.py', line 125 in call response = self.dispatch(controller, environ, start_response) File '/root/_INSTALLED/theory/env/lib/python2.5/site-packages/Pylons-0.9.7-py2.5.egg/pylons/wsgiapp.py', line 324 in dispatch return controller(environ, start_response) File '/root/_INSTALLED/theory/theory/lib/base.py', line 28 in call return WSGIController.call(self, environ, start_response) File '/root/_INSTALLED/theory/env/lib/python2.5/site-packages/Pylons-0.9.7-py2.5.egg/pylons/controllers/core.py', line 221 in call response = self._dispatch_call() File '/root/_INSTALLED/theory/env/lib/python2.5/site-packages/Pylons-0.9.7-py2.5.egg/pylons/controllers/core.py', line 172 in _dispatch_call response = self._inspect_call(func) File '/root/_INSTALLED/theory/env/lib/python2.5/site-packages/Pylons-0.9.7-py2.5.egg/pylons/controllers/core.py', line 107 in _inspect_call result = self._perform_call(func, args) File '/root/_INSTALLED/theory/env/lib/python2.5/site-packages/Pylons-0.9.7-py2.5.egg/pylons/controllers/core.py', line 60 in _perform_call return func(args) File '/root/_INSTALLED/theory/theory/controllers/main.py', line 101 in tracks return render('/tracks.html') File '/root/_INSTALLED/theory/env/lib/python2.5/site-packages/Pylons-0.9.7-py2.5.egg/pylons/templating.py', line 274 in render_mako cache_type=cache_type, cache_expire=cache_expire) File '/root/_INSTALLED/theory/env/lib/python2.5/site-packages/Pylons-0.9.7-py2.5.egg/pylons/templating.py', line 249 in cached_template return render_func() File '/root/_INSTALLED/theory/env/lib/python2.5/site-packages/Pylons-0.9.7-py2.5.egg/pylons/templating.py', line 271 in render_template return literal(template.render_unicode(globs)) File '/root/_INSTALLED/theory/env/lib/python2.5/site-packages/Mako-0.2.4-py2.5.egg/mako/template.py', line 138 in render_unicode return runtime.render(self, self.callable, args, data, as_unicode=True) File '/root/_INSTALLED/theory/env/lib/python2.5/site-packages/Mako-0.2.4-py2.5.egg/mako/runtime.py', line 347 in _render _rendercontext(template, callable, context, _args, __kwargs_forcallable(callable, data)) File '/root/_INSTALLED/theory/env/lib/python2.5/site-packages/Mako-0.2.4-py2.5.egg/mako/runtime.py', line 364 in _render_context _exec_template(inherit, lclcontext, args=args, kwargs=kwargs) File '/root/_INSTALLED/theory/env/lib/python2.5/site-packages/Mako-0.2.4-py2.5.egg/mako/runtime.py', line 397 in _exectemplate callable(context, _args, _kwargs) File '/root/_INSTALLED/theory/data/templates/body.html.py', line 46 in render_body __M_writer(escape(self.body())) File '/root/_INSTALLED/theory/env/lib/python2.5/site-packages/Mako-0.2.4-py2.5.egg/mako/runtime.py', line 255 in return lambda _args, kwargs:callable(self.context, _args, _kwargs) File '/root/_INSTALLED/theory/data/templates/tracks.html.py', line 56 in render_body title = h.html.literal("title=\"Album: " + t['album'].replace('"','\"') + "\"") KeyError: 'album'

ralfonso commented 14 years ago

fixed in HEAD and 0.1.10