diff options
author | Trygve Aaberge <trygveaa@gmail.com> | 2023-01-12 22:47:51 +0100 |
---|---|---|
committer | Trygve Aaberge <trygveaa@gmail.com> | 2024-02-18 11:32:53 +0100 |
commit | adf20323ce99e8829a2ab53f8d487f5704d28320 (patch) | |
tree | 85c008fdc7c115c9d0d9cc2eaf056cc0aab83b5b /slack/http.py | |
parent | 7574554b09eacb7aaaa8610d73fef6bd9d8a363f (diff) | |
download | wee-slack-adf20323ce99e8829a2ab53f8d487f5704d28320.tar.gz |
Don't fetch the same user multiple times
Diffstat (limited to 'slack/http.py')
-rw-r--r-- | slack/http.py | 5 |
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) |