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

Commit 1ed0955

Browse files
committed
small pylint changes
1 parent 3d2d1de commit 1ed0955

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

CloudFlare/read_configs.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,26 +21,27 @@ def read_configs():
2121
])
2222

2323
if email is None:
24+
email = config.get('CloudFlare', 'email')
2425
try:
2526
email = re.sub(r"\s+", '', config.get('CloudFlare', 'email'))
26-
except:
27+
except IndexError:
2728
email = None
2829

2930
if token is None:
3031
try:
3132
token = re.sub(r"\s+", '', config.get('CloudFlare', 'token'))
32-
except:
33+
except IndexError:
3334
token = None
3435

3536
if certtoken is None:
3637
try:
3738
certtoken = re.sub(r"\s+", '', config.get('CloudFlare', 'certtoken'))
38-
except:
39+
except IndexError:
3940
certtoken = None
4041

4142
try:
4243
extras = re.sub(r"\s+", ' ', config.get('CloudFlare', 'extras'))
43-
except:
44+
except IndexError:
4445
extras = None
4546

4647
if extras:

0 commit comments

Comments
 (0)