From 5cac63e3a8b7fff05ed037ff8fff4317b2e6f316 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Tue, 19 Feb 2013 14:04:20 -0500 Subject: [PATCH] api: Fix reading in default value for api/site. (imported from commit 7e698015599aee4f7b9176381b2ef2d29f3836af) --- humbug/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/humbug/__init__.py b/humbug/__init__.py index f02cbe7..971eecf 100644 --- a/humbug/__init__.py +++ b/humbug/__init__.py @@ -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