From eaad0d4dd54a8067c0a8500b21234615347888d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Ole=C5=9B?= Date: Fri, 20 Nov 2015 12:04:06 +0100 Subject: [PATCH] Lookup vals only if config was found --- solar/solar/config.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/solar/solar/config.py b/solar/solar/config.py index 3b724e05..9a92c501 100644 --- a/solar/solar/config.py +++ b/solar/solar/config.py @@ -48,7 +48,8 @@ def from_configs(): for key in path: vals = vals[key] config[path[-1]] = vals - _lookup_vals(_setter, C) + if data: + _lookup_vals(_setter, C) def from_env():