8000 Assume `path` is passed in appropriately. · yuan3y/plotly.py@2d28cb3 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2d28cb3

Browse files
committed
Assume path is passed in appropriately.
1 parent 70d9761 commit 2d28cb3

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

plotly/exceptions.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,7 @@ class PlotlyGraphObjectError(PlotlyError):
8484
def __init__(self, message='', path=(), note='', plain_message=''):
8585
self.message = message
8686
self.plain_message = plain_message
87-
if isinstance(path, (basestring, int)):
88-
self.path = [path]
89-
else:
90-
self.path = list(path)
87+
self.path = list(path)
9188
self.note = note
9289
super(PlotlyGraphObjectError, self).__init__(message)
9390

0 commit comments

Comments
 (0)
0