From ebfd8c937cb2a365c7dac19bfaf211e42b098e99 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Fri, 28 Aug 2015 10:00:04 +0800 Subject: [PATCH] language/environment: fix set_* with parent --- artiq/language/environment.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/artiq/language/environment.py b/artiq/language/environment.py index 6a15118ba..e49246caf 100644 --- a/artiq/language/environment.py +++ b/artiq/language/environment.py @@ -220,6 +220,7 @@ class HasEnvironment: """Writes the value of a parameter into the parameter database.""" if self.__parent is not None: self.__parent.set_parameter(key, value) + return if self.__pdb is None: raise ValueError("Parameter database not present") self.__pdb.set(key, value) @@ -236,6 +237,7 @@ class HasEnvironment: """ if self.__parent is not None: self.__parent.set_result(key, value, realtime, store) + return if self.__rdb is None: raise ValueError("Result database not present") if realtime: