From 15577e25ecc21ced37314d4ddd1b3b6931522aff Mon Sep 17 00:00:00 2001
From: Jean-Paul Calderone <exarkun@twistedmatrix.com>
Date: Wed, 10 Jun 2020 11:30:57 -0400
Subject: [PATCH] Avoid raising a _DefGen_Return through Eliot

This makes for ugly logs though probably no functional impairment.
---
 src/_zkapauthorizer/_storage_client.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/_zkapauthorizer/_storage_client.py b/src/_zkapauthorizer/_storage_client.py
index e4c8e59..bcc46d7 100644
--- a/src/_zkapauthorizer/_storage_client.py
+++ b/src/_zkapauthorizer/_storage_client.py
@@ -185,8 +185,8 @@ def call_with_passes_with_manual_spend(method, num_passes, get_passes, on_succes
             pass_group.reset()
             raise
 
-        # Give the operation's result to the caller.
-        returnValue(result)
+    # Give the operation's result to the caller.
+    returnValue(result)
 
 
 def call_with_passes(method, num_passes, get_passes):
-- 
GitLab