api: Fix reading in default value for api/site.
(imported from commit 7e698015599aee4f7b9176381b2ef2d29f3836af)
This commit is contained in:
parent
28ebf108a9
commit
5cac63e3a8
|
@ -83,8 +83,8 @@ class Client(object):
|
|||
api_key = config.get("api", "key")
|
||||
if email is None:
|
||||
email = config.get("api", "email")
|
||||
if site is None:
|
||||
site = config.get("api", "site", None)
|
||||
if site is None and config.has_option("api", "site"):
|
||||
site = config.get("api", "site")
|
||||
|
||||
self.api_key = api_key
|
||||
self.email = email
|
||||
|
|
Loading…
Reference in a new issue