Преглед изворни кода

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}')


Loading…
Откажи
Сачувај