Skip to content

Commit 4a91aaf

Browse files
Update extra_scripts/post.py
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
1 parent 1e0903c commit 4a91aaf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

extra_scripts/post.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def rename_secrets_after_upload(*args, **kwargs):
5252
syntax_error_content = f'''{{
5353
"WARNING_REMOVE_THIS_LINE_TO_USE": "If you modified secrets, ERASE DEVICE FIRST: pio run -e <env> -t erase",
5454
// INTENTIONAL SYNTAX ERROR: Remove this comment line and the line above to use
55-
{original_content[1:-1]},
55+
{original_content[1:-1] if len(original_content) >= 2 else ''},
5656
"INJECTED_TIMESTAMP": "{timestamp}",
5757
}}'''
5858

0 commit comments

Comments
 (0)