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)