diff --git a/frappyman.py b/frappyman.py index 927b343..3b9a1df 100644 --- a/frappyman.py +++ b/frappyman.py @@ -50,7 +50,7 @@ class FrappyManager(ServiceManager): cfgparser = ConfigParser() cfgparser.optionxform = str cfgfile = self.env[ins].get('FRAPPY_CONFIG_FILE') - confdir = self.env[ins]['FRAPPY_CONFDIR'] + confdir = self.env[ins].get('FRAPPY_CONFDIR') if cfgfile is not None: cfgfile = self.env[ins]['FRAPPY_CONFIG_FILE'].replace('', service) cfgparser.read(cfgfile)