aboutsummaryrefslogtreecommitdiffstats
path: root/slack/http.py
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2023-01-12 22:47:51 +0100
committerTrygve Aaberge <trygveaa@gmail.com>2024-02-18 11:32:53 +0100
commitadf20323ce99e8829a2ab53f8d487f5704d28320 (patch)
tree85c008fdc7c115c9d0d9cc2eaf056cc0aab83b5b /slack/http.py
parent7574554b09eacb7aaaa8610d73fef6bd9d8a363f (diff)
downloadwee-slack-adf20323ce99e8829a2ab53f8d487f5704d28320.tar.gz
Don't fetch the same user multiple times
Diffstat (limited to 'slack/http.py')
-rw-r--r--slack/http.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/slack/http.py b/slack/http.py
index 794164d..ca99526 100644
--- a/slack/http.py
+++ b/slack/http.py
@@ -42,10 +42,11 @@ async def hook_process_hashtable(command: str, options: Dict[str, str], timeout:
return_code = -1
while return_code == -1:
- _, return_code, out, err = await future
+ next_future = FutureProcess(future.id)
+ _, return_code, out, err = await next_future
log(
LogLevel.TRACE,
- f"hook_process_hashtable intermediary response ({future.id}): command: {command}",
+ f"hook_process_hashtable intermediary response ({next_future.id}): command: {command}",
)
stdout.write(out)
stderr.write(err)