Fixing a DeprecationWarning with activeCount()

This commit is contained in:
Miroslav Stampar
2021-10-07 00:45:55 +02:00
parent 182c06e26b
commit e9d7a770e1
3 changed files with 4 additions and 4 deletions

View File

@@ -198,7 +198,7 @@ def runThreads(numThreads, threadFunction, cleanupFunction=None, forwardExceptio
if numThreads > 1:
logger.info("waiting for threads to finish%s" % (" (Ctrl+C was pressed)" if isinstance(ex, KeyboardInterrupt) else ""))
try:
while (threading.activeCount() > 1):
while (threading.active_count() > 1):
pass
except KeyboardInterrupt: