1717"""
1818import json
1919
20- ## Base Plotly Error ##
2120
21+ # Base Plotly Error
2222class PlotlyError (Exception ):
2323 pass
2424
2525
26-
2726class InputError (PlotlyError ):
2827 pass
2928
@@ -57,8 +56,7 @@ def __str__(self):
5756 return self .message
5857
5958
60- ## Grid Errors ##
61-
59+ # Grid Errors #
6260COLUMN_NOT_YET_UPLOADED_MESSAGE = (
6361 "Hm... it looks like your column '{column_name}' hasn't "
6462 "been uploaded to Plotly yet. You need to upload your "
@@ -73,14 +71,14 @@ def __str__(self):
7371 "can't have duplicate column names. Rename "
7472 "the column \" {0}\" and try again."
7573)
76- ## Would Cause Server Errors ##
74+
75+ # Would Cause Server Errors
7776
7877class PlotlyEmptyDataError (PlotlyError ):
7978 pass
8079
8180
82- ## Graph Objects Errors ##
83-
81+ # Graph Objects Errors
8482class PlotlyGraphObjectError (PlotlyError ):
8583 def __init__ (self , message = '' , path = None , notes = None , plain_message = '' ):
8684 self .message = message
@@ -196,8 +194,7 @@ def __init__(self, obj='', index='', **kwargs):
196194 ** kwargs )
197195
198196
199- ## Local Config Errors ##
200-
197+ # Local Config Errors
201198class PlotlyLocalError (PlotlyError ):
202199 pass
203200
@@ -218,8 +215,7 @@ def __init__(self):
218215 super (PlotlyLocalCredentialsError , self ).__init__ (message )
219216
220217
221- ## Server Errors ##
222-
218+ # Server Errors
223219class PlotlyServerError (PlotlyError ):
224220 pass
225221
0 commit comments