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

Skip to content

Commit e11bdc2

Browse files
committed
pep:8ball: comments
1 parent 2e4a74d commit e11bdc2

File tree

1 file changed

+7
-11
lines changed

1 file changed

+7
-11
lines changed

plotly/exceptions.py

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,12 @@
1717
"""
1818
import json
1919

20-
## Base Plotly Error ##
2120

21+
# Base Plotly Error
2222
class PlotlyError(Exception):
2323
pass
2424

2525

26-
2726
class 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 #
6260
COLUMN_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

7877
class PlotlyEmptyDataError(PlotlyError):
7978
pass
8079

8180

82-
## Graph Objects Errors ##
83-
81+
# Graph Objects Errors
8482
class 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
201198
class 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
223219
class PlotlyServerError(PlotlyError):
224220
pass
225221

0 commit comments

Comments
 (0)