Skip to content

Commit

Permalink
Process 'extras' only if they are set
Browse files Browse the repository at this point in the history
  • Loading branch information
Carl Kibler committed May 16, 2016
1 parent 680962c commit 5c8afef
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CloudFlare/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,5 +195,6 @@ def __init__(self, email=None, token=None, certtoken=None, debug=False):

# add the API calls
api_v4(self)
api_extras(self, extras)
if extras:
api_extras(self, extras)

3 changes: 2 additions & 1 deletion CloudFlare/read_configs.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ def read_configs():
except:
extras = None

extras = extras.split(' ')
if extras:
extras = extras.split(' ')

return [ email, token, certtoken, extras ]

0 comments on commit 5c8afef

Please sign in to comment.