fix error

This commit is contained in:
Jack Robison 2023-02-07 17:31:36 -05:00
parent f2c494d4d6
commit 7bc90c425f
No known key found for this signature in database
GPG key ID: DF25C68FE0239BB2

View file

@ -2071,7 +2071,7 @@ class BlockchainProcessorService(BlockchainService):
self._caught_up_event = caught_up_event self._caught_up_event = caught_up_event
try: try:
if os.path.exists(self.db._need_restart_path): if os.path.exists(self.db._need_restart_path):
raise MemoryError() raise RuntimeError('scribe restart is needed')
if self.height != self.daemon.cached_height() and not self.db.catching_up: if self.height != self.daemon.cached_height() and not self.db.catching_up:
await self._need_catch_up() # tell the readers that we're still catching up with lbrycrd/lbcd await self._need_catch_up() # tell the readers that we're still catching up with lbrycrd/lbcd
while not self._stopping: while not self._stopping: