Skip to content

Commit b05e545

Browse files
guard against None
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent b6a13d5 commit b05e545

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

meshtastic/__main__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1347,6 +1347,8 @@ def export_config(interface) -> str:
13471347
return config_txt
13481348

13491349
def _set_if_populated(profile, field_name, value):
1350+
if value is None:
1351+
return
13501352
val = str(value).strip()
13511353
if val:
13521354
setattr(profile, field_name, val)

0 commit comments

Comments
 (0)