X-Git-Url: http://gitweb.michael.orlitzky.com/?p=sage.d.git;a=blobdiff_plain;f=mjo%2Feja%2Feja_algebra.py;h=4a1c6f94f589c80b9021b71ee01693765aabcaeb;hp=8e522527413b89c0e704687583dc9c4636303170;hb=82d3e5bb067d73eb0aa557d234da0f9723b456e8;hpb=da6160ad4c8156d51290fd056aa7d5b3d609c8e9 diff --git a/mjo/eja/eja_algebra.py b/mjo/eja/eja_algebra.py index 8e52252..4a1c6f9 100644 --- a/mjo/eja/eja_algebra.py +++ b/mjo/eja/eja_algebra.py @@ -779,13 +779,9 @@ class FiniteDimensionalEJA(CombinatorialFreeModule): if elt.parent().superalgebra() == self: return elt.superalgebra_element() - try: - # Try to convert a vector into a column-matrix... + if hasattr(elt, 'column'): + # Convert a vector into a column-matrix... elt = elt.column() - except (AttributeError, TypeError): - # and ignore failure, because we weren't really expecting - # a vector as an argument anyway. - pass if elt not in self.matrix_space(): raise ValueError(msg)