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