From b0993c8b525d2327ff699d91436eb933844cf4b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20H=C3=B6rsch?= Date: Tue, 10 Jul 2018 16:34:46 +0200 Subject: [PATCH] Minor fix to allow omitting parameter corrections --- scripts/base_network.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/base_network.py b/scripts/base_network.py index e0337cb9..617e8bd8 100644 --- a/scripts/base_network.py +++ b/scripts/base_network.py @@ -99,6 +99,8 @@ def _apply_parameter_corrections(n): for component, attrs in iteritems(corrections): df = n.df(component) + if attrs is None: continue + for attr, repls in iteritems(attrs): for i, r in iteritems(repls): if i == 'oid':