Hello,
We encountered a runtime issue with the
tracoverlayview plugin when running under Python 2.7.
The error is caused by iterating over a dictionary while it may be modified during the loop. In our case, the issue occurs in
tracoverlayview/web_ui.py, in the
_get_mimetypes() method:
for ext, mimetype in _iteritems(map_):
This can raise the following error:
RuntimeError: dictionary changed size during iteration
We applied the following local patch to iterate over a static list of items instead:
for ext, mimetype in list(_iteritems(map_)):
Suggested patch:
- for ext, mimetype in _iteritems(map_):
+ for ext, mimetype in list(_iteritems(map_)):
This fixes the issue in our environment.
Thank you.