fixed queue get

This commit is contained in:
2020-08-12 09:23:11 +02:00
parent 3df24b70ef
commit 7bc34c16a4

View File

@@ -8,7 +8,7 @@ import shutil
import subprocess import subprocess
import sys import sys
import time import time
from queue import Queue from queue import Queue, Empty
import semver import semver
import yaml import yaml
@@ -215,7 +215,10 @@ if __name__ == '__main__':
while True: while True:
if q.qsize() > 0: if q.qsize() > 0:
build(*q.get()) try:
build(*q.get_nowait())
except Empty:
pass
else: else:
time.sleep(60) time.sleep(60)