diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-11-09 09:25:48 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-11-09 09:25:48 +0000 |
commit | fc2c8b325a27d1dd0e181a50517601b4fde8aa7f (patch) | |
tree | ef1849fa20636bdbda9fa704f3bfba6ee73bd418 /dev-python/requests-toolbelt/files/requests-toolbelt-0.8.0-test-tracebacks.patch | |
parent | 7db983f17e59dfa621d994bcbdbddc71a6e70a57 (diff) |
gentoo auto-resync : 09:11:2022 - 09:25:48
Diffstat (limited to 'dev-python/requests-toolbelt/files/requests-toolbelt-0.8.0-test-tracebacks.patch')
-rw-r--r-- | dev-python/requests-toolbelt/files/requests-toolbelt-0.8.0-test-tracebacks.patch | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/dev-python/requests-toolbelt/files/requests-toolbelt-0.8.0-test-tracebacks.patch b/dev-python/requests-toolbelt/files/requests-toolbelt-0.8.0-test-tracebacks.patch deleted file mode 100644 index 418039bc7f94..000000000000 --- a/dev-python/requests-toolbelt/files/requests-toolbelt-0.8.0-test-tracebacks.patch +++ /dev/null @@ -1,36 +0,0 @@ -From e130ad521d3b5a14cd9494213e6ca9f52d0d9a2e Mon Sep 17 00:00:00 2001 -From: Brian Dolbec <brian.dolbec@sony.com> -Date: Wed, 7 Mar 2018 21:52:25 +0000 -Subject: [PATCH] threaded/thread.py: Fix unhandled Nonetype job queue - -Adding this check and return prevents numerous test tracebacks: - -Exception in thread 12f554d5-f61f-44d9-bc69-023714627952: -Traceback (most recent call last): - File "/usr/lib64/python3.4/threading.py", line 911, in _bootstrap_inner - self.run() - File "/usr/lib64/python3.4/threading.py", line 859, in run - self._target(*self._args, **self._kwargs) - File "/home/bdolbec/git/toolbelt/requests_toolbelt/threaded/thread.py", line 43, in _make_request - kwargs = self._jobs.get_nowait() -AttributeError: 'NoneType' object has no attribute 'get_nowait' - -Signed-off-by: Brian Dolbec <brian.dolbec@sony.com> -Signed-off-by: Brian Dolbec <dolsen@gentoo.org> ---- - requests_toolbelt/threaded/thread.py | 2 ++ - 1 file changed, 2 insertions(+) - -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 @@ def _handle_request(self, kwargs): - self._jobs.task_done() - - def _make_request(self): -+ if self._jobs is None: -+ return - while True: - try: - kwargs = self._jobs.get_nowait() |