From b05e5453969b8184ce064bd4d124c0cfbb6d7177 Mon Sep 17 00:00:00 2001 From: Ian McEwen Date: Wed, 1 Jul 2026 15:21:25 -0700 Subject: [PATCH] guard against None Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --- meshtastic/__main__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/meshtastic/__main__.py b/meshtastic/__main__.py index 5cd1f5c..d621fd6 100644 --- a/meshtastic/__main__.py +++ b/meshtastic/__main__.py @@ -1347,6 +1347,8 @@ def export_config(interface) -> str: return config_txt def _set_if_populated(profile, field_name, value): + if value is None: + return val = str(value).strip() if val: setattr(profile, field_name, val)