File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -1364,10 +1364,7 @@ def _pad(s, cell_len=cell_len):
1364
1364
1365
1365
def get_graph_obj (obj , obj_type = None ):
1366
1366
"""Returns a new graph object.
1367
-
1368
- OLD FUNCTION: this will *silently* strip out invalid pieces of the object.
1369
- NEW FUNCTION: no striping of invalid pieces anymore - only raises error
1370
- on unrecognized graph_objs
1367
+ This will *silently* strip out invalid pieces of the object.
1371
1368
"""
1372
1369
# TODO: Deprecate or move. #283
1373
1370
from plotly .graph_objs import graph_objs
@@ -1377,7 +1374,7 @@ def get_graph_obj(obj, obj_type=None):
1377
1374
raise exceptions .PlotlyError (
1378
1375
"'{}' is not a recognized graph_obj." .format (obj_type )
1379
1376
)
1380
- return cls (obj )
1377
+ return cls (obj , skip_invalid = True )
1381
1378
1382
1379
1383
1380
def validate (obj , obj_type ):
You can’t perform that action at this time.
0 commit comments