We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b89be4e commit 6b53e44Copy full SHA for 6b53e44
plotly/exceptions.py
@@ -103,10 +103,10 @@ def __str__(self):
103
'path': '[' + ']['.join(repr(k) for k in self.path) + ']',
104
'note': self.note
105
}
106
- return (
107
- '{message}\n\nPath To Error: {path}\n\nAdditional Notes:\n {note}'
108
- .format(**format_dict)
109
- )
+ message = '{message}\n\nPath To Error: {path}'.format(**format_dict)
+ if format_dict['note']:
+ message += '\n\nAdditional Notes:\n {note}'.format(**format_dict)
+ return message
110
111
112
class PlotlyDictKeyError(PlotlyGraphObjectError):
0 commit comments