Skip to content

Commit

Permalink
Fixed the issue with a missing extras= in the config file. You now do…
Browse files Browse the repository at this point in the history
…nt need the extras= command
  • Loading branch information
mahtin committed Jun 22, 2016
1 parent d4261a0 commit 01fe999
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions CloudFlare/read_configs.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,24 +24,24 @@ def read_configs():
email = config.get('CloudFlare', 'email')
try:
email = re.sub(r"\s+", '', config.get('CloudFlare', 'email'))
except IndexError:
except ConfigParser.NoOptionError:
email = None

if token is None:
try:
token = re.sub(r"\s+", '', config.get('CloudFlare', 'token'))
except IndexError:
except ConfigParser.NoOptionError:
token = None

if certtoken is None:
try:
certtoken = re.sub(r"\s+", '', config.get('CloudFlare', 'certtoken'))
except IndexError:
except ConfigParser.NoOptionError:
certtoken = None

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

if extras:
Expand Down

0 comments on commit 01fe999

Please sign in to comment.