Skip to content

Commit a90b415

Browse files
committed
specified the exception as an attributeerror... we want that so we can make sure that the line has a parent, though I'm not sure that there is a situation where that *isn't* true
1 parent b242628 commit a90b415

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

matplotlib2tikz/line2d.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def get_legend_label_(line):
1212
ax = line.axes
1313
leg = ax.get_legend()
1414
return label in [l.get_label() for l in leg.get_lines()]
15-
except:
15+
except AttributeError:
1616
return None
1717

1818
def draw_line2d(data, obj):

0 commit comments

Comments
 (0)