Skip to content
Snippets Groups Projects
Commit ce308fdb authored by Niklas Ekström's avatar Niklas Ekström
Browse files

Inherits from EXception instead of BaseException

parent 1aa51695
No related branches found
No related merge requests found
......@@ -5,7 +5,7 @@ def error_missing_mandatory(key, level='node'):
print('KeyError, {} has to have a value at {} level'.format(key, level))
class SecopException(BaseException):
class SecopException(Exception):
def __init__(self, message, **kwargs):
self.lst = [str(self.__class__.__name__), str(message), str(kwargs)]
super(SecopException, self).__init__(self.lst)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment