Quellcode durchsuchen

Fix taskType typo silencing cancellation warnings

tags/v0.2.2
JustAnotherArchivist vor 4 Jahren
Ursprung
Commit
69984765b3
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. +1
    -1
      qwarc/__init__.py

+ 1
- 1
qwarc/__init__.py Datei anzeigen

@@ -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)


Laden…
Abbrechen
Speichern