Unhandled 'accept' content-type

Created by: jpmens

I was hoping (without looking at the code) that the server would allow me to specify a non-standard content-type:

curl -H 'Accept: application/zone' http://dnslg.prox:8080/example.org/A
A server error occurred.  Please contact the administrator.

But it doesn't:

Traceback (most recent call last):
  File "/usr/lib64/python2.6/wsgiref/handlers.py", line 93, in run
    self.result = application(self.environ, self.start_response)
  File "/home/jpm/dns-lg/DNSLG/__init__.py", line 397, in application
    do_dnssec, tcp, cd, edns_size, reverse)
  File "/home/jpm/dns-lg/DNSLG/__init__.py", line 283, in query
    formatter.format(answer, qtype, qclass, answer.flags, self)
UnboundLocalError: local variable 'formatter' referenced before assignment
172.16.153.1 - - [24/Feb/2013 17:59:03] "GET /example.org/A HTTP/1.1" 500 59

;-)

Info: latest version, launched with

python test-server.py