fix d11ec67 mathutils dependency regression

mathutils is a blender module, wrap imports in try/except
This commit is contained in:
Bruno Postle
2024-05-06 13:55:20 +01:00
parent 31d322a28c
commit 54a3730c20
2 changed files with 16 additions and 4 deletions
@@ -16,6 +16,9 @@
# You should have received a copy of the GNU Lesser General Public License
# along with IfcOpenShell. If not, see <http://www.gnu.org/licenses/>.
from .create_axis_curve import create_axis_curve
try:
from .create_axis_curve import create_axis_curve
except ModuleNotFoundError as e:
print(f"Note: API not available due to missing dependencies: grid.create_axis_curve - {e}")
from .create_grid_axis import create_grid_axis
from .remove_grid_axis import remove_grid_axis