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

Commit 654b4e2

Browse files
author
David Lucas
committed
Fixed bug with check on Guava
1 parent 88f0d6f commit 654b4e2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/sage/coding/linear_code.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -1580,7 +1580,9 @@ def covering_radius(self):
15801580
sage: C.covering_radius()
15811581
1
15821582
"""
1583-
if not bool(gap.load_package("guava")):
1583+
try:
1584+
(gap.load_package("guava"))
1585+
except RuntimeError:
15841586
A = self.ambient_space()
15851587
n = self.length()
15861588
Iter_ambient = iter(A)

0 commit comments

Comments
 (0)