api: Fix reading in default value for api/site.

(imported from commit 7e698015599aee4f7b9176381b2ef2d29f3836af)
This commit is contained in:
Tim Abbott 2013-02-19 14:04:20 -05:00
parent 28ebf108a9
commit 5cac63e3a8

View file

@ -83,8 +83,8 @@ class Client(object):
api_key = config.get("api", "key") api_key = config.get("api", "key")
if email is None: if email is None:
email = config.get("api", "email") email = config.get("api", "email")
if site is None: if site is None and config.has_option("api", "site"):
site = config.get("api", "site", None) site = config.get("api", "site")
self.api_key = api_key self.api_key = api_key
self.email = email self.email = email