浏览代码

Fix taskType typo silencing cancellation warnings

tags/v0.2.2
JustAnotherArchivist 4 年前
父节点
当前提交
69984765b3
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      qwarc/__init__.py

+ 1
- 1
qwarc/__init__.py 查看文件

@@ -220,7 +220,7 @@ class QWARC:
except concurrent.futures.CancelledError as e:
# Got cancelled, nothing we can do about it, but let's log a warning if it's a process task
if isinstance(future, asyncio.Task):
if future.taskType == 'process_item':
if future.taskType == 'process':
logging.warning(f'Task for {future.itemType}:{future.itemValue} cancelled: {future!r}')
elif future.taskType == 'sleep':
self._sleepTasks.remove(future)


正在加载...
取消
保存