Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
Do not catch any exceptions; just let it fail.
Browse files Browse the repository at this point in the history
  • Loading branch information
tscrim committed Jul 14, 2022
1 parent 2f7cd21 commit 07ffd7a
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/sage/algebras/quantum_clifford.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,11 +160,8 @@ def __classcall_private__(cls, n, k=1, q=None, F=None):
F = q.parent()
q = F(q)
if F not in Fields():
try:
F = F.fraction_field()
q = F(q)
except Exception:
raise TypeError("base ring must be a field or have a fraction field")
F = F.fraction_field()
q = F(q)

if bool(q**(2*k) == 1):
return QuantumCliffordAlgebraRootUnity(n, k, q, F)
Expand Down

0 comments on commit 07ffd7a

Please sign in to comment.