Skip to content

Commit 4236b13

Browse files
fix: touch env_file if it doesn't exist
1 parent f83cd4d commit 4236b13

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

botstrap.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -422,6 +422,9 @@ def sync_emojis(self) -> dict[str, Any]:
422422

423423
def write_config_env(self, config: dict[str, dict[str, Any]]) -> bool:
424424
"""Write the configuration to the specified env_file."""
425+
if not self.env_file.exists():
426+
self.env_file.touch()
427+
425428
with self.env_file.open("r+") as file:
426429
before = file.read()
427430
file.seek(0)

0 commit comments

Comments
 (0)