diff --git a/src/_zkapauthorizer/tahoe.py b/src/_zkapauthorizer/tahoe.py index 754681e3a6ae2bb58dd4245ca39046addf960f39..404b3780def605db69286b09d2777e2c7c707f8f 100644 --- a/src/_zkapauthorizer/tahoe.py +++ b/src/_zkapauthorizer/tahoe.py @@ -45,9 +45,10 @@ def _not_enough_servers(exc: Exception) -> bool: Match the exception that is raised when the Tahoe-LAFS client node is not connected to enough servers to satisfy the encoding configuration. """ - return isinstance( - exc, TahoeAPIError - ) and "allmydata.interfaces.NoServersError" in str(exc) + return isinstance(exc, TahoeAPIError) and ( + "allmydata.interfaces.NoServersError" in str(exc) + or "allmydata.mutable.common.NotEnoughServersError" in str(exc) + ) @define