From 2ca357e44c40faf1a3fb5e0e84bed663fe18707b Mon Sep 17 00:00:00 2001 From: strawberry Date: Wed, 20 Mar 2024 00:53:39 -0400 Subject: [PATCH] use unwrap_or_default if timestamp conversion fails Signed-off-by: strawberry --- src/database/abstraction/rocksdb.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/database/abstraction/rocksdb.rs b/src/database/abstraction/rocksdb.rs index 5398de71..ac97a5ad 100644 --- a/src/database/abstraction/rocksdb.rs +++ b/src/database/abstraction/rocksdb.rs @@ -275,7 +275,7 @@ impl KeyValueDatabaseEngine for Arc { format_args!( "#{} {}: {} bytes, {} files\n", info.backup_id, - DateTime::::from_timestamp(info.timestamp, 0).unwrap().to_rfc2822(), + DateTime::::from_timestamp(info.timestamp, 0).unwrap_or_default().to_rfc2822(), info.size, info.num_files, ),