@@ -79,8 +79,8 @@ def __init__(self, obj='', key='', **kwargs):
79
79
"'help(plotly.graph_objs.{obj_name})' for more information."
80
80
"" .format (key = key , obj_name = obj .__class__ .__name__ )
81
81
)
82
- plain_message = "invalid key, '{}', for '{ }' object" \
83
- "" .format (key , obj .__class__ .__name__ )
82
+ plain_message = ( "Invalid key, '{key }', found in '{obj }' object"
83
+ "" .format (key = key , obj = obj .__class__ .__name__ ) )
84
84
super (PlotlyDictKeyError , self ).__init__ (message = message ,
85
85
path = [key ],
86
86
plain_message = plain_message ,
@@ -98,8 +98,8 @@ def __init__(self, obj='', key='', value='', val_types='', **kwargs):
98
98
val_types = val_types ,
99
99
obj_name = obj .__class__ .__name__ )
100
100
)
101
- plain_message = ("invalid value associated with key, '{}', for "
102
- "'{}' object " .format (key , obj .__class__ .__name__ ))
101
+ plain_message = ("Invalid value found in '{obj}' associated with key, "
102
+ "'{key}' " .format (key = key , obj = obj .__class__ .__name__ ))
103
103
super (PlotlyDictValueError , self ).__init__ (message = message ,
104
104
plain_message = plain_message ,
105
105
path = [key ],
@@ -113,8 +113,8 @@ def __init__(self, obj='', index='', entry='', **kwargs):
113
113
"" .format (index , obj .__class__ .__name__ )
114
114
)
115
115
plain_message = (
116
- "The entry at index, '{}', in '{}' object is invalid ."
117
- "" .format (index , obj .__class__ .__name__ )
116
+ "Invalid entry found in '{obj}' object at index, '{index}' ."
117
+ "" .format (obj = obj .__class__ .__name__ , index = index )
118
118
)
119
119
super (PlotlyListEntryError , self ).__init__ (message = message ,
120
120
plain_message = plain_message ,
@@ -130,9 +130,9 @@ def __init__(self, obj='', index='', **kwargs):
130
130
"'{}' lists." .format (index , obj .__class__ .__name__ )
131
131
)
132
132
plain_message = (
133
- "The 'data' entry at index, '{}', is invalid because it does "
134
- "not contain a valid 'type' key. This is required for "
135
- "valid 'data' lists. " .format (index ))
133
+ "Invalid entry found in 'data' object at index, '{}'. It does "
134
+ "not contain a valid 'type' key, required for 'data' lists. "
135
+ "" .format (index ))
136
136
super (PlotlyDataTypeError , self ).__init__ (message = message ,
137
137
plain_message = plain_message ,
138
138
path = [index ],
0 commit comments