add error handling for init
This commit is contained in:
parent
65e1d39f26
commit
1cc8bc4ddf
@ -14,9 +14,12 @@ from utils import debug
|
|||||||
|
|
||||||
class fenrir():
|
class fenrir():
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self.environment = settingsManager.settingsManager().initFenrirConfig()
|
try:
|
||||||
if not self.environment:
|
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)
|
signal.signal(signal.SIGINT, self.captureSignal)
|
||||||
|
|
||||||
def proceed(self):
|
def proceed(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user