From 2bd20882481e9b0784c9388515fdd5d52e26ef55 Mon Sep 17 00:00:00 2001 From: zeppi Date: Tue, 5 Apr 2022 14:52:12 -0400 Subject: [PATCH] bugfix --- lbry/wallet/database.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lbry/wallet/database.py b/lbry/wallet/database.py index 1f7b2c0e4..e3a4cf7a0 100644 --- a/lbry/wallet/database.py +++ b/lbry/wallet/database.py @@ -1212,7 +1212,8 @@ class Database(SQLiteMixin): async def get_address_count(self, cols=None, read_only=False, **constraints): # this is a count query that returns one line. Don't pass offset. - constraints.pop('offset') + if 'offset' in constraints: + constraints.pop('offset') count = await self.select_addresses('COUNT(*) as total', read_only=read_only, **constraints) return count[0]['total'] or 0