Skip to content

Commit 7cb2d26

Browse files
committed
Scrub redundant __init__ overrides.
No need to define same __init__ method as in the base class.
1 parent 952336d commit 7cb2d26

1 file changed

Lines changed: 12 additions & 57 deletions

File tree

diffpy/pdfgui/control/controlerrors.py

Lines changed: 12 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -26,104 +26,59 @@ def __init__(self, info):
2626
def __str__(self):
2727
return self.info
2828

29+
2930
class ControlConfigError(ControlError):
3031
"""PDFGuiControl exception class -- object config is invalid"""
31-
def __init__(self, info):
32-
"""initialize
32+
pass
3333

34-
info -- description string
35-
"""
36-
ControlError.__init__(self, info)
3734

3835
class ControlFileError(ControlError):
3936
"""PDFGuiControl exception class -- object config is invalid"""
40-
def __init__(self, info):
41-
"""initialize
37+
pass
4238

43-
info -- description string
44-
"""
45-
ControlError.__init__(self, info)
4639

4740
class ControlKeyError(ControlError):
4841
"""PDFGuiControl exception class -- requested object can't be found"""
49-
def __init__(self, info):
50-
"""initialize
42+
pass
5143

52-
info -- description string
53-
"""
54-
ControlError.__init__(self, info)
5544

5645
class ControlValueError(ControlError):
5746
"""PDFGuiControl exception class -- Invalid value"""
58-
def __init__(self, info):
59-
"""initialize
47+
pass
6048

61-
info -- description string
62-
"""
63-
ControlError.__init__(self, info)
6449

6550
class ControlTypeError(ControlError):
6651
"""PDFGuiControl exception class -- Type mismatch"""
67-
def __init__(self, info):
68-
"""initialize
52+
pass
6953

70-
info -- description string
71-
"""
72-
ControlError.__init__(self, info)
7354

7455
class ControlStatusError(ControlError):
7556
"""PDFGuiControl exception class -- Fitting status doesn't match"""
76-
def __init__(self, info):
77-
"""initialize
57+
pass
7858

79-
info -- description string
80-
"""
81-
ControlError.__init__(self, info)
8259

8360
class ControlRuntimeError(ControlError):
8461
"""PDFGuiControl exception class -- various irrecoverable runtime error"""
85-
def __init__(self, info):
86-
"""initialize
87-
88-
info -- description string
89-
"""
90-
ControlError.__init__(self, info)
62+
pass
9163

9264
class ControlConnectError(ControlError):
9365
"""PDFGuiControl exception class -- network connection error"""
94-
def __init__(self, info):
95-
"""initialize
66+
pass
9667

97-
info -- description string
98-
"""
99-
ControlError.__init__(self, info)
10068

10169
class ControlAuthError(ControlError):
10270
"""PDFGuiControl exception class -- authentication failed """
103-
def __init__(self, info):
104-
"""initialize
71+
pass
10572

106-
info -- description string
107-
"""
108-
ControlError.__init__(self, info)
10973

11074
class ControlIndexError(ControlError):
11175
"""PDFGuiControl exception class -- index out of bound """
112-
def __init__(self, info):
113-
"""initialize
76+
pass
11477

115-
info -- description string
116-
"""
117-
ControlError.__init__(self, info)
11878

11979
class ControlSyntaxError(ControlError):
12080
"""PDFGuiControl exception class -- invalid syntax of constraint formula
12181
"""
122-
def __init__(self, info):
123-
"""initialize
124-
125-
info -- description string
126-
"""
127-
ControlError.__init__(self, info)
82+
pass
12883

12984
# End of file

0 commit comments

Comments
 (0)