From 32f5ad5092a49e22a1124cbc9246c9b02e88f0df Mon Sep 17 00:00:00 2001 From: Jean-Paul Calderone <exarkun@twistedmatrix.com> Date: Sat, 19 Feb 2022 17:07:03 -0500 Subject: [PATCH] handle the mutable case, too! --- src/_zkapauthorizer/tahoe.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/_zkapauthorizer/tahoe.py b/src/_zkapauthorizer/tahoe.py index 754681e..404b378 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 -- GitLab