rembo10/headphones — Issue #490: 500 Internal Server Error when adding new artist
Author: ruffy91
Created: 2012-02-22 22:02:06+00:00
State: open

I get this error when trying to add a new artist:

```500 Internal Server Error

The server encountered an unexpected condition which prevented it from fulfilling the request.

Traceback (most recent call last):
File "C:\headphones\cherrypy\_cprequest.py", line 645, in respond
response.body = self.handler()
File "C:\headphones\cherrypy\lib\encoding.py", line 188, in __call__
self.body = self.oldhandler(*args, **kwargs)
File "C:\headphones\cherrypy\_cpdispatch.py", line 29, in __call__
return self.callable(*self.args, **self.kwargs)
File "C:\headphones\headphones\webserve.py", line 67, in search
searchresults = mb.findArtist(name, limit=100)
File "C:\headphones\headphones\mb.py", line 66, in findArtist
logger.warn('Attempt to query MusicBrainz for %s failed: %s [%s:%i]' % (name, e, mbhost, mbport))
NameError: global name 'mbhost' is not defined```