Skip to content

Commit 73928e0

Browse files
committed
fixed failing matplotlylib tests from last PR
1 parent 20ec3bd commit 73928e0

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

plotly/matplotlylib/renderer.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -179,11 +179,9 @@ def open_axes(self, ax, props):
179179

180180
# let all subsequent dates be handled properly if required
181181

182-
try:
183-
xaxis['type'] == 'date'
182+
if 'type' in dir(xaxis) and xaxis['type'] == 'date':
184183
self.x_is_mpl_date = True
185-
except KeyError:
186-
pass
184+
187185

188186
def close_axes(self, ax):
189187
"""Close the axes object and clean up.

0 commit comments

Comments
 (0)