Comment 7 for bug 1472429

Revision history for this message
Michael Thomson (ubuntu-net) wrote :

Hmmm - would it be reasonable to look for the layer name in the table, but if not found, default to layer '0' (which, presumably, can be guaranteed to exist, after your code at line 420?)

e.g. something like

if layer_nodes.has_key(vals[groups['8']][0]):
    layer = layer_nodes[vals[groups['8']][0]]
else:
    layer = layer_nodes['0']