add error handling for init
This commit is contained in:
parent
65e1d39f26
commit
1cc8bc4ddf
@ -14,9 +14,12 @@ from utils import debug
|
||||
|
||||
class fenrir():
|
||||
def __init__(self):
|
||||
try:
|
||||
self.environment = settingsManager.settingsManager().initFenrirConfig()
|
||||
if not self.environment:
|
||||
|
||||
raise RuntimeError('Cannot Initialize. Maybe the configfile is not available or not parseable')
|
||||
except RuntimeError:
|
||||
raise
|
||||
signal.signal(signal.SIGINT, self.captureSignal)
|
||||
|
||||
def proceed(self):
|
||||
|
Loading…
Reference in New Issue
Block a user