Linenumbers of traceback wrong

Thomas Guettler guettli at
Thu Feb 26 13:39:10 CET 2004


Sometimes the linenumbers of a traceback are wrong.

See this traceback. I don't use any attribute "key" here.
The method search_dict does not use this attribute, too.

Traceback (most recent call last):
  File "/mnt/raid/modarch/workflow/python/lib/python2.3/site-packages/quixote/", line 553, in publish
    output = self.process_request(request, env)
  File "/mnt/raid/modarch/workflow/python/lib/python2.3/site-packages/quixote/", line 535, in process_requ
    output = self.try_publish(request, env.get('PATH_INFO', ''))
  File "/mnt/raid/modarch/workflow/lib/", line 198, in try_publish
    return Publisher.try_publish(self, request, path)
  File "/mnt/raid/modarch/workflow/python/lib/python2.3/site-packages/quixote/", line 483, in try_publish
    output = object(request)
  File "/mnt/raid/modarch/workflow/lib/", line 726, in search
  File "/mnt/raid/modarch/workflow/lib/", line 302, in search_dict
AttributeError: keys

Python 2.3.2 (#1, Nov 20 2003, 12:57:28)
[GCC 2.95.3 20010315 (SuSE)] on linux2

"keys" get used here:

    def search(self, attr, value, maxvalue=None):
        result_dict=self.search_dict(attr, value, maxvalue)
        return result_dict.keys()

ids_dict was created with "ids_dict={}"

Any hints?


More information about the Python-list mailing list