From 2cdaa231b45434ffe37b38b6cdf5ed7d81126da0 Mon Sep 17 00:00:00 2001 From: nocturn9x Date: Fri, 6 Aug 2021 11:53:38 +0200 Subject: [PATCH] Small fixes --- giambio/core.py | 2 +- giambio/exceptions.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/giambio/core.py b/giambio/core.py index a56e9e4..424a99c 100644 --- a/giambio/core.py +++ b/giambio/core.py @@ -318,7 +318,7 @@ class AsyncScheduler: dict(self.selector.get_map()).values(), ): self.io_release(k.fileobj) - task.last_io = () + task.last_io = () def io_release(self, sock): """ diff --git a/giambio/exceptions.py b/giambio/exceptions.py index f03207d..eb8b91b 100644 --- a/giambio/exceptions.py +++ b/giambio/exceptions.py @@ -18,6 +18,7 @@ limitations under the License. import traceback from typing import List +from giambio.task import Task class GiambioError(Exception): @@ -43,7 +44,7 @@ class CancelledError(GiambioError): at least it should be re-raised and never ignored """ - ... + task: Task class ResourceBusy(GiambioError):