dojeda / poetry2conda

Convert pyproject.toml to environment.yaml
MIT License
126 stars 21 forks source link

Empty file created when poetry2conda fails #2

Closed dojeda closed 4 years ago

dojeda commented 4 years ago

When the poetry2conda command fails, the target environment.yaml file is still created with empty contents. This is an undesirable behavior due to the usage of argparse.FileType. Ideally, the file should be written only when the conversion has succeeded.