From 896cd529995408b246c80a73055dd8d206f10f9d Mon Sep 17 00:00:00 2001 From: jason taylor Date: Wed, 25 Sep 2024 11:08:17 -0400 Subject: [PATCH] metrics: handle None value unwrap panic --- src/timeline/metrics.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/timeline/metrics.rs b/src/timeline/metrics.rs index 0e7bc4f01..96090d296 100644 --- a/src/timeline/metrics.rs +++ b/src/timeline/metrics.rs @@ -184,7 +184,7 @@ impl EventMetrics { let channel = if let Some(ch) = utils::get_event_value("Channel", &record.record, &stored_static.eventkey_alias) { - ch.as_str().unwrap() + ch.as_str().unwrap_or_else(|| { "None" }) } else { "-" };