From 2c29ce8d19405c32d0a4846538a9facc1f766009 Mon Sep 17 00:00:00 2001 From: Nao Pross Date: Sun, 3 Mar 2024 01:09:53 +0100 Subject: Fix PolyIndex.is_constant --- mdpoly/types.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mdpoly/types.py b/mdpoly/types.py index 4b75e8f..a8ffd90 100644 --- a/mdpoly/types.py +++ b/mdpoly/types.py @@ -146,8 +146,7 @@ class PolyIndex(tuple[PolyVarIndex]): def is_constant(index: Self) -> bool: """ Check if is index of a constant term """ if len(index) != 1: - # FIXME: error message - raise IndexError(f"{index}") + return False return PolyVarIndex.is_constant(index[0]) -- cgit v1.2.1