소스 검색

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)


불러오는 중...
취소
저장