Skip to content

Commit

Permalink
Merge pull request cloudflare#2 from carlkibler/master
Browse files Browse the repository at this point in the history
Process 'extras' only if they are set
  • Loading branch information
mahtin committed May 17, 2016
2 parents f458c23 + 5c8afef commit d55f9d1
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 d55f9d1

Please sign in to comment.