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

Commit 5c8afef

Browse files
author
Carl Kibler
committed
Process 'extras' only if they are set
1 parent 680962c commit 5c8afef

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

CloudFlare/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,5 +195,6 @@ def __init__(self, email=None, token=None, certtoken=None, debug=False):
195195

196196
# add the API calls
197197
api_v4(self)
198-
api_extras(self, extras)
198+
if extras:
199+
api_extras(self, extras)
199200

CloudFlare/read_configs.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ def read_configs():
3737
except:
3838
extras = None
3939

40-
extras = extras.split(' ')
40+
if extras:
41+
extras = extras.split(' ')
4142

4243
return [ email, token, certtoken, extras ]
4344

0 commit comments

Comments
 (0)