From 2d1c6a54021b091bb4b9c62eca63a9ef4d934fb0 Mon Sep 17 00:00:00 2001 From: Jack Robison <jackrobison@lbry.io> Date: Thu, 3 Dec 2020 18:25:38 -0500 Subject: [PATCH] fix --- lbry/wallet/database.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lbry/wallet/database.py b/lbry/wallet/database.py index 42fc1a70f..aef2c6811 100644 --- a/lbry/wallet/database.py +++ b/lbry/wallet/database.py @@ -159,7 +159,7 @@ class AIOSQLite: await self.read_ready.wait() still_waiting = True if self._closing: - raise asyncio.CancelledError + raise asyncio.CancelledError() return await asyncio.get_event_loop().run_in_executor( self.reader_executor, read_only_fn, sql, parameters ) @@ -203,7 +203,7 @@ class AIOSQLite: try: async with self.write_lock: if self._closing: - raise asyncio.CancelledError + raise asyncio.CancelledError() return await asyncio.get_event_loop().run_in_executor( self.writer_executor, lambda: self.__run_transaction(fun, *args, **kwargs) ) @@ -240,7 +240,7 @@ class AIOSQLite: try: async with self.write_lock: if self._closing: - raise asyncio.CancelledError + raise asyncio.CancelledError() return await asyncio.get_event_loop().run_in_executor( self.writer_executor, self.__run_transaction_with_foreign_keys_disabled, fun, args, kwargs )