diff --git a/src/GroupRings.jl b/src/GroupRings.jl index 5610f3c..4985965 100644 --- a/src/GroupRings.jl +++ b/src/GroupRings.jl @@ -128,11 +128,7 @@ function (RG::GroupRing)(T::Type=Int) end function (RG::GroupRing)(g::GroupElem, T::Type=Int) - g = try - RG.group(g) - catch - throw("Can't coerce $g to the underlying group of $RG") - end + g = RG.group(g) result = RG(T) result[g] = one(T) return result