8000 No need for the `Additional Notes` string… · yuan3y/plotly.py@1401c12 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1401c12

Browse files
committed
No need for the Additional Notes string…
1 parent db20def commit 1401c12

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

plotly/exceptions.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,8 @@ def __str__(self):
9191
'path': '[' + ']['.join(repr(k) for k in self.path) + ']',
9292
'notes': '\n'.join(self.notes)
9393
}
94-
message = '{message}\n\nPath To Error: {path}'.format(**format_dict)
95-
if format_dict['notes']:
96-
message += '\n\nAdditional Notes:\n\n{notes}'.format(**format_dict)
97-
return message
94+
return ('{message}\n\nPath To Error: {path}\n\n{notes}'
95+
.format(**format_dict))
9896

9997

10098
class PlotlyDictKeyError(PlotlyGraphObjectError):

0 commit comments

Comments
 (0)
0