Skip to content

Commit

Permalink
small pylint changes
Browse files Browse the repository at this point in the history
  • Loading branch information
mahtin committed Jun 14, 2016
1 parent 3d2d1de commit 1ed0955
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions CloudFlare/read_configs.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,26 +21,27 @@ def read_configs():
])

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

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

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

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

if extras:
Expand Down

0 comments on commit 1ed0955

Please sign in to comment.