Skip to content

Commit

Permalink
Don't copy non-existant file.
Browse files Browse the repository at this point in the history
  • Loading branch information
tardis4500 committed May 29, 2024
1 parent ba22922 commit 80309f5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion git_stream/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,8 @@ def _write_config(new_config: DotMap) -> None:
try:
dotmap_to_yaml(new_config, CONFIG)
except: # noqa:E722
copyfile(CONFIG_BAK, CONFIG)
if CONFIG_BAK.exists():
copyfile(CONFIG_BAK, CONFIG)
raise


Expand Down

0 comments on commit 80309f5

Please sign in to comment.