summaryrefslogtreecommitdiffstats
path: root/polymatrix/expression/mixins/divisionexprmixin.py
diff options
context:
space:
mode:
Diffstat (limited to 'polymatrix/expression/mixins/divisionexprmixin.py')
-rw-r--r--polymatrix/expression/mixins/divisionexprmixin.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/polymatrix/expression/mixins/divisionexprmixin.py b/polymatrix/expression/mixins/divisionexprmixin.py
index ee9b2ff..d84c09a 100644
--- a/polymatrix/expression/mixins/divisionexprmixin.py
+++ b/polymatrix/expression/mixins/divisionexprmixin.py
@@ -42,9 +42,8 @@ class DivisionExprMixin(ExpressionBaseMixin):
for row in range(left.shape[0]):
for col in range(left.shape[1]):
- try:
- underlying_terms = left.get_poly(row, col)
- except KeyError:
+ underlying_terms = left.get_poly(row, col)
+ if underlying_terms is None:
continue
def gen_monomial_terms():