Skip to content

Commit 4eff679

Browse files
authored
fix function has_valid_sdkconfig()
1 parent 60ee531 commit 4eff679

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

platform.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,9 +117,11 @@ def safe_copy_file(src: str, dst: str) -> bool:
117117
return True
118118

119119

120-
def has_valid_sdkconfig(config_value: str) -> bool:
120+
def has_valid_sdkconfig(config_value) -> bool:
121121
"""Check if sdkconfig value is valid and non-empty."""
122-
return bool(config_value and config_value.strip())
122+
if not config_value:
123+
return False
124+
return bool(config_value.strip())
123125

124126

125127
class Espressif32Platform(PlatformBase):

0 commit comments

Comments
 (0)