Commit ca9502e
committed
BUG: Fix UnboundLocalError in contour labelling
The code was trying to protect the access of xy1 and xy2 to valid cases,
but unfortunately, for a list, l != -1 doesn't do element-by-element or
return an error--it just always returns True. Therefore it wasn't
actually guarding.1 parent d2f7bb1 commit ca9502e
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
440 | 440 | | |
441 | 441 | | |
442 | 442 | | |
443 | | - | |
| 443 | + | |
444 | 444 | | |
445 | 445 | | |
446 | 446 | | |
| |||
0 commit comments