[tor-commits] [stem/master] Fix an unawaited coroutine
atagar at torproject.org
atagar at torproject.org
Thu Jul 16 01:28:58 UTC 2020
commit a3ffe6fd54d15ceffba31ca2c2fc5523b8b477b8
Author: Illia Volochii <illia.volochii at gmail.com>
Date: Fri Apr 17 23:04:27 2020 +0300
Fix an unawaited coroutine
---
stem/control.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/stem/control.py b/stem/control.py
index 20d7c8ef..37e9c689 100644
--- a/stem/control.py
+++ b/stem/control.py
@@ -3077,7 +3077,7 @@ class Controller(BaseController):
for event_type in events:
event_type = stem.response.events.EVENT_TYPE_TO_CLASS.get(event_type)
- if event_type and (self.get_version() < event_type._VERSION_ADDED):
+ if event_type and (await self.get_version() < event_type._VERSION_ADDED):
raise stem.InvalidRequest('552', '%s event requires Tor version %s or later' % (event_type, event_type._VERSION_ADDED))
for event_type in events:
More information about the tor-commits
mailing list