Skip to content

Commit 4cb404f

Browse files
committed
swap attribute for not implemented err
1 parent f1ff967 commit 4cb404f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/flint/flint_base/flint_base.pyx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,10 +255,10 @@ cdef class flint_poly(flint_elem):
255255
return roots
256256

257257
def real_roots(self):
258-
raise AttributeError("Real roots are not supported for this polynomial")
258+
raise NotImplementedError("Real roots are not supported for this polynomial")
259259

260260
def complex_roots(self):
261-
raise AttributeError("Complex roots are not supported for this polynomial")
261+
raise NotImplementedError("Complex roots are not supported for this polynomial")
262262

263263

264264
cdef class flint_mpoly_context(flint_elem):

0 commit comments

Comments
 (0)