diff --git a/frappyman.py b/frappyman.py index edbeab6..75e0e9c 100644 --- a/frappyman.py +++ b/frappyman.py @@ -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(''): cfgpaths.append(cfgpath[:-6] + service)