diff --git a/lbry/blockchain/sync/blocks.py b/lbry/blockchain/sync/blocks.py index b028e7ba1..f42c95009 100644 --- a/lbry/blockchain/sync/blocks.py +++ b/lbry/blockchain/sync/blocks.py @@ -254,7 +254,7 @@ def get_block_range_without_filters() -> Tuple[int, int]: .select_from( BlockTable.join(BlockFilter, BlockTable.c.height == BlockFilter.c.height, isouter=True) ) - .where(BlockFilter.c.height == None) + .where(BlockFilter.c.height.is_(None)) ) result = context().fetchone(sql) return result['start_height'], result['end_height'] diff --git a/tests/integration/blockchain/test_blockchain.py b/tests/integration/blockchain/test_blockchain.py index f3a512f47..747ce58a4 100644 --- a/tests/integration/blockchain/test_blockchain.py +++ b/tests/integration/blockchain/test_blockchain.py @@ -4,7 +4,7 @@ import asyncio import tempfile from unittest import skip from binascii import hexlify, unhexlify -from typing import List, Optional, Iterable +from typing import List, Optional from distutils.dir_util import copy_tree, remove_tree from lbry import Config, Database, RegTestLedger, Transaction, Output, Input