From 0cdb06fdf53a375dc7f08c4a9b85685ab5d4321f Mon Sep 17 00:00:00 2001 From: Deepskyhunter <48083317+Deepskyhunter@users.noreply.github.com> Date: Thu, 28 Jul 2022 17:55:25 +0800 Subject: [PATCH] language/environment: support no argument manager unbreak tests --- artiq/language/environment.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/artiq/language/environment.py b/artiq/language/environment.py index 204bf823f..9ce7034cc 100644 --- a/artiq/language/environment.py +++ b/artiq/language/environment.py @@ -252,7 +252,8 @@ class HasEnvironment: self.__in_build = True self.build(*args, **kwargs) self.__in_build = False - self.__argument_mgr.check_unprocessed_arguments() + if self.__argument_mgr is not None: + self.__argument_mgr.check_unprocessed_arguments() def register_child(self, child): self.children.append(child)