summaryrefslogtreecommitdiff
blob: ddc7b3b05a24e643f5e131c63e995c7f8f35b8c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
From 7af2e4ce4192dfab6bd8315ad31b5b689386a0d3 Mon Sep 17 00:00:00 2001
From:  <@��>
Date: Wed, 7 Mar 2018 21:52:25 +0000
Subject: [PATCH] threaded/tread.py: Fix numerous test failures

---
 requests_toolbelt/threaded/thread.py | 2 ++
 1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/requests_toolbelt/threaded/thread.py b/requests_toolbelt/threaded/thread.py
index 542813c..f33b759 100644
--- a/requests_toolbelt/threaded/thread.py
+++ b/requests_toolbelt/threaded/thread.py
@@ -36,6 +36,8 @@ class SessionThread(object):
             self._jobs.task_done()
 
     def _make_request(self):
+        if self._jobs is None:
+            return
         while True:
             try:
                 kwargs = self._jobs.get_nowait()
--
libgit2 0.24.6