mirror of
https://github.com/checktheroads/hyperglass
synced 2024-05-11 05:55:08 +00:00
Add base exception init
This commit is contained in:
@@ -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):
|
||||
|
Reference in New Issue
Block a user