diff --git a/CloudFlare/read_configs.py b/CloudFlare/read_configs.py index 33ec61c..4f0bcca 100644 --- a/CloudFlare/read_configs.py +++ b/CloudFlare/read_configs.py @@ -11,6 +11,7 @@ def read_configs(): email = os.getenv('CF_API_EMAIL') token = os.getenv('CF_API_KEY') certtoken = os.getenv('CF_API_CERTKEY') + extras = os.getenv('CF_API_EXTRAS') # grab values from config files config = ConfigParser.RawConfigParser() @@ -41,7 +42,7 @@ def read_configs(): try: extras = re.sub(r"\s+", ' ', config.get('CloudFlare', 'extras')) - except ConfigParser.NoOptionError: + except (ConfigParser.NoSectionError, ConfigParser.NoOptionError): extras = None if extras: