From: Calin Crisan Date: Thu, 26 Feb 2015 15:53:59 +0000 (+0200) Subject: minor config func fix X-Git-Url: http://www.vanbest.org/gitweb/?a=commitdiff_plain;h=cc91b290e54561da218d30cc0c068e04c864d4f5;p=motioneye-debian minor config func fix --- diff --git a/src/config.py b/src/config.py index caf6849..d36746f 100644 --- a/src/config.py +++ b/src/config.py @@ -1230,6 +1230,9 @@ def _dict_to_conf(lines, data, list_names=[]): new_value = data.get(name) if new_value is not None: for v in new_value: + if v is None: + continue + line = name + ' ' + _python_to_value(v) conf_lines.append(line) @@ -1258,6 +1261,9 @@ def _dict_to_conf(lines, data, list_names=[]): if name in list_names: for v in value: + if v is None: + continue + line = name + ' ' + _python_to_value(v) conf_lines.append(line)