Skip to content
This repository was archived by the owner on Nov 22, 2024. It is now read-only.

Commit 53da54b

Browse files
committed
Merge branch 'niekrosink-FixEmptyExtraField'
2 parents aeff51b + 020601b commit 53da54b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

CloudFlare/read_configs.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ def read_configs():
1111
email = os.getenv('CF_API_EMAIL')
1212
token = os.getenv('CF_API_KEY')
1313
certtoken = os.getenv('CF_API_CERTKEY')
14+
extras = os.getenv('CF_API_EXTRAS')
1415

1516
# grab values from config files
1617
config = ConfigParser.RawConfigParser()
@@ -41,7 +42,7 @@ def read_configs():
4142

4243
try:
4344
extras = re.sub(r"\s+", ' ', config.get('CloudFlare', 'extras'))
44-
except ConfigParser.NoOptionError:
45+
except (ConfigParser.NoSectionError, ConfigParser.NoOptionError):
4546
extras = None
4647

4748
if extras:

0 commit comments

Comments
 (0)