diff --git a/rust-bins/duniter-dbex/src/export_bc.rs b/rust-bins/duniter-dbex/src/export_bc.rs
index 6a38ddff463e6501403a21bcde9dbc30b7d6e9f2..94a9f91b5c250f5b0aafcab9318080126a920671 100644
--- a/rust-bins/duniter-dbex/src/export_bc.rs
+++ b/rust-bins/duniter-dbex/src/export_bc.rs
@@ -101,7 +101,9 @@ pub(crate) fn export_bc<B: Backend>(
                 Ok(())
             })?;
         // Write last chunk
-        write_chunk(chunk_index, json_blocks, output_dir, pretty)?;
+        if !json_blocks.is_empty() {
+            write_chunk(chunk_index, json_blocks, output_dir, pretty)?;
+        }
         progress_bar.set_progress(1.0);
 
         reader_handle