Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 29476b1

Browse files
committed
Changed words like 'dictionary' and 'lists' to 'objects'.
1 parent edd24a5 commit 29476b1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

plotly/exceptions.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def __init__(self, obj='', key='', **kwargs):
7979
"'help(plotly.graph_objs.{obj_name})' for more information."
8080
"".format(key=key, obj_name=obj.__class__.__name__)
8181
)
82-
plain_message="invalid key, '{}', in '{}' dictionary" \
82+
plain_message="invalid key, '{}', for '{}' object" \
8383
"".format(key, obj.__class__.__name__)
8484
super(PlotlyDictKeyError, self).__init__(message=message,
8585
path=[key],
@@ -98,8 +98,8 @@ def __init__(self, obj='', key='', value='', val_types='', **kwargs):
9898
val_types=val_types,
9999
obj_name=obj.__class__.__name__)
100100
)
101-
plain_message = ("invalid value associated with key, '{}', in "
102-
"'{}' dictionary".format(key, obj.__class__.__name__))
101+
plain_message = ("invalid value associated with key, '{}', for "
102+
"'{}' object".format(key, obj.__class__.__name__))
103103
super(PlotlyDictValueError, self).__init__(message=message,
104104
plain_message=plain_message,
105105
path=[key],
@@ -113,7 +113,7 @@ def __init__(self, obj='', index='', entry='', **kwargs):
113113
"".format(index, obj.__class__.__name__)
114114
)
115115
plain_message = (
116-
"The entry at index, '{}', in '{}' list is invalid."
116+
"The entry at index, '{}', in '{}' object is invalid."
117117
"".format(index, obj.__class__.__name__)
118118
)
119119
super(PlotlyListEntryError, self).__init__(message=message,
@@ -131,7 +131,7 @@ def __init__(self, obj='', index='', **kwargs):
131131
)
132132
plain_message = (
133133
"The 'data' entry at index, '{}', is invalid because it does "
134-
"not contain a valid 'type' key-value. This is required for "
134+
"not contain a valid 'type' key. This is required for "
135135
"valid 'data' lists.".format(index))
136136
super(PlotlyDataTypeError, self).__init__(message=message,
137137
plain_message=plain_message,

0 commit comments

Comments
 (0)