소스 검색

Switch from concurrent.futures.CancelledError to asyncio.CancelledError

Since Python 3.8, the latter does not inherit from the former anymore.
master
JustAnotherArchivist 3 년 전
부모
커밋
c878241f24
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. +1
    -1
      qwarc/__init__.py

+ 1
- 1
qwarc/__init__.py 파일 보기

@@ -250,7 +250,7 @@ class QWARC:
item = future.item
try:
future.result()
except concurrent.futures.CancelledError as e:
except asyncio.CancelledError as e:
# Got cancelled, nothing we can do about it, but let's log a warning if it's a process task
if future.taskType == 'process':
logging.error(f'Task for {future.itemType}:{future.itemValue} cancelled: {future!r}')


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