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

Commit 01fe999

Browse files
committed
Fixed the issue with a missing extras= in the config file. You now dont need the extras= command
1 parent d4261a0 commit 01fe999

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

CloudFlare/read_configs.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,24 +24,24 @@ def read_configs():
2424
email = config.get('CloudFlare', 'email')
2525
try:
2626
email = re.sub(r"\s+", '', config.get('CloudFlare', 'email'))
27-
except IndexError:
27+
except ConfigParser.NoOptionError:
2828
email = None
2929

3030
if token is None:
3131
try:
3232
token = re.sub(r"\s+", '', config.get('CloudFlare', 'token'))
33-
except IndexError:
33+
except ConfigParser.NoOptionError:
3434
token = None
3535

3636
if certtoken is None:
3737
try:
3838
certtoken = re.sub(r"\s+", '', config.get('CloudFlare', 'certtoken'))
39-
except IndexError:
39+
except ConfigParser.NoOptionError:
4040
certtoken = None
4141

4242
try:
4343
extras = re.sub(r"\s+", ' ', config.get('CloudFlare', 'extras'))
44-
except IndexError:
44+
except ConfigParser.NoOptionError:
4545
extras = None
4646

4747
if extras:

0 commit comments

Comments
 (0)