fix possible backend crash

This commit is contained in:
nymkappa 2023-05-31 09:48:44 -07:00
parent 126a75ed45
commit c558c85f36
No known key found for this signature in database
GPG Key ID: E155910B16E8BD04

View File

@ -928,7 +928,7 @@ class BlocksRepository {
return blocks; return blocks;
} catch (e) { } catch (e) {
logger.err(`Cannot get blocks with missing coinstatsindex. Reason: ` + (e instanceof Error ? e.message : e)); logger.err(`Cannot get blocks with missing coinstatsindex. Reason: ` + (e instanceof Error ? e.message : e));
throw e; return [];
} }
} }