solver: do not raise error when no assembly is found

This commit is contained in:
Zheng, Lei 2018-06-03 12:37:41 +08:00
parent 4b1a3b9de6
commit 939f571aa8

View File

@ -283,7 +283,8 @@ def _solve(objs=None,recursive=None,reportFailed=True,
assemblies.append(obj) assemblies.append(obj)
if not assemblies: if not assemblies:
raise RuntimeError('no assembly found') logger.info('no assembly found')
return True
if recursive: if recursive:
# Get all dependent object, including external ones, and return as a # Get all dependent object, including external ones, and return as a