@@ -81,9 +81,9 @@ class PlotlyEmptyDataError(PlotlyError):
81
81
82
82
# Graph Objects Errors
83
83
class PlotlyGraphObjectError (PlotlyError ):
84
- def __init__ (self , message = '' , path = (), notes = (), plain_message = '' ):
84
+ def __init__ (self , message = '' , path = (), notes = ()):
85
85
self .message = message
86
- self .plain_message = plain_message
86
+ self .plain_message = message # for backwards compat
87
87
self .path = list (path )
88
88
self .notes = notes
89
89
super (PlotlyGraphObjectError , self ).__init__ (message )
@@ -107,7 +107,7 @@ def __init__(self, obj, path, notes=()):
107
107
.format (** format_dict ))
108
108
notes = [obj .help (return_help = True )] + list (notes )
109
109
super (PlotlyDictKeyError , self ).__init__ (
110
- message = message , path = path , notes = notes , plain_message = message
110
+ message = message , path = path , notes = notes
111
111
)
112
112
113
113
@@ -118,7 +118,7 @@ def __init__(self, obj, path, notes=()):
118
118
.format (** format_dict ))
119
119
notes = [obj .help (path [- 1 ], return_help = True )] + list (notes )
120
120
super (PlotlyDictValueError , self ).__init__ (
121
- message = message , plain_message = message , notes = notes , path = path
121
+ message = message , notes = notes , path = path
122
122
)
123
123
124
124
@@ -129,7 +129,7 @@ def __init__(self, obj, path, notes=()):
129
129
.format (** format_dict ))
130
130
notes = [obj .help (return_help = True )] + list (notes )
131
131
super (PlotlyListEntryError , self ).__init__ (
132
- message = message , plain_message = message , path = path , notes = notes
132
+ message = message , path = path , notes = notes
133
133
)
134
134
135
135
@@ -141,7 +141,7 @@ def __init__(self, obj, path, notes=()):
141
141
note = "It's invalid because it does't contain a valid 'type' value."
142
142
notes = [note ] + list (notes )
143
143
super (PlotlyDataTypeError , self ).__init__ (
144
- message = message , plain_message = message , path = path , notes = notes
144
+ message = message , path = path , notes = notes
145
145
)
146
146
147
147
0 commit comments