X-Git-Url: http://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=mjo%2Feja%2Feja_algebra.py;h=389efbf77219acff73db032e848e34d8da1670e9;hb=9632a965029feadbb70d18574f8704812ed71321;hp=9198a8b124e041e4edcc4351271db01345accaa0;hpb=9dd1e4c84fa17c8fe9d758a4fec9e090965c5cb9;p=sage.d.git diff --git a/mjo/eja/eja_algebra.py b/mjo/eja/eja_algebra.py index 9198a8b..389efbf 100644 --- a/mjo/eja/eja_algebra.py +++ b/mjo/eja/eja_algebra.py @@ -857,8 +857,11 @@ class FiniteDimensionalEuclideanJordanAlgebra(CombinatorialFreeModule): # two dimensional). s = FiniteDimensionalEuclideanJordanSubalgebra(self, sb) subalgebras.append(s) - except: - pass + except ArithmeticError as e: + if str(e) == "vector is not in free module": + # Ignore only the "not a sub-EJA" error + pass + if len(subalgebras) >= 2: # apply this method recursively. return tuple( c.superalgebra_element()