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):
13641364
13651365def get_graph_obj (obj , obj_type = None ):
13661366 """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.
13711368 """
13721369 # TODO: Deprecate or move. #283
13731370 from plotly .graph_objs import graph_objs
@@ -1377,7 +1374,7 @@ def get_graph_obj(obj, obj_type=None):
13771374 raise exceptions .PlotlyError (
13781375 "'{}' is not a recognized graph_obj." .format (obj_type )
13791376 )
1380- return cls (obj )
1377+ return cls (obj , skip_invalid = True )
13811378
13821379
13831380def validate (obj , obj_type ):
You can’t perform that action at this time.
0 commit comments