From 939f571aa8370c6e0b6c9fc7746c7d59bf320d42 Mon Sep 17 00:00:00 2001 From: "Zheng, Lei" Date: Sun, 3 Jun 2018 12:37:41 +0800 Subject: [PATCH] solver: do not raise error when no assembly is found --- solver.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/solver.py b/solver.py index 12feef0..39adc51 100644 --- a/solver.py +++ b/solver.py @@ -283,7 +283,8 @@ def _solve(objs=None,recursive=None,reportFailed=True, assemblies.append(obj) if not assemblies: - raise RuntimeError('no assembly found') + logger.info('no assembly found') + return True if recursive: # Get all dependent object, including external ones, and return as a