frappyman: raise from None
This commit is contained in:
parent
ac9e35123c
commit
34e13ccc67
@ -55,8 +55,8 @@ class FrappyManager(ServiceManager):
|
||||
section = cfgparser['FRAPPY']
|
||||
except KeyError:
|
||||
if exists(cfgfile):
|
||||
raise KeyError('%s has no FRAPPY section' % cfgfile)
|
||||
raise FileNotFoundError('%s does not exist' % cfgfile)
|
||||
raise KeyError('%s has no FRAPPY section' % cfgfile) from None
|
||||
raise FileNotFoundError('%s not found' % cfgfile) from None
|
||||
for cfgpath in section['confdir'].split(os.pathsep):
|
||||
if cfgpath.endswith('<SERV>'):
|
||||
cfgpaths.append(cfgpath[:-6] + service)
|
||||
|
Loading…
x
Reference in New Issue
Block a user