2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-28 20:53:35 +08:00

language/environment: support no argument manager

unbreak tests
This commit is contained in:
Deepskyhunter 2022-07-28 17:55:25 +08:00 committed by GitHub
parent 2a7a72b27a
commit 0cdb06fdf5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)