forked from mirrors/thatmattlove-hyperglass
Add base exception init
This commit is contained in:
parent
2f33a823e4
commit
478a3dcda9
1 changed files with 2 additions and 2 deletions
|
|
@ -8,8 +8,6 @@ class HyperglassError(Exception):
|
|||
hyperglass base exception.
|
||||
"""
|
||||
|
||||
pass
|
||||
|
||||
|
||||
class ConfigError(HyperglassError):
|
||||
"""
|
||||
|
|
@ -19,6 +17,7 @@ class ConfigError(HyperglassError):
|
|||
"""
|
||||
|
||||
def __init__(self, message):
|
||||
super().__init__(message)
|
||||
self.message = message
|
||||
|
||||
def __str__(self):
|
||||
|
|
@ -31,6 +30,7 @@ class UnsupportedDevice(HyperglassError):
|
|||
"""
|
||||
|
||||
def __init__(self, message):
|
||||
super().__init__(message)
|
||||
self.message = message
|
||||
|
||||
def __str__(self):
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue