up2k: cheap progress bars

This commit is contained in:
ed 2021-04-17 00:57:35 +02:00
parent 171e93c201
commit 217d15fe81
3 changed files with 48 additions and 23 deletions

View file

@ -1068,6 +1068,8 @@ class Up2k(object):
with self.mutex:
job = self.registry[ptop].get(wark, None)
if not job:
known = " ".join([x for x in self.registry[ptop].keys()])
self.log("unknown wark [{}], known: {}".format(wark, known))
raise Pebkac(400, "unknown wark")
if chash not in job["need"]: