diff --git a/src/index/updater.rs b/src/index/updater.rs index ced5f88d73..d6c1223326 100644 --- a/src/index/updater.rs +++ b/src/index/updater.rs @@ -121,7 +121,11 @@ impl Updater { progress_bar.inc(1); if progress_bar.position() > progress_bar.length().unwrap() { - progress_bar.set_length(index.client.get_block_count()? + 1); + if let Ok(count) = index.client.get_block_count() { + progress_bar.set_length(count + 1); + } else { + log::warn!("Failed to fetch latest block height"); + } } }