From 178ec0dc608d3a9e62140f6507e6bd2ebdc6f612 Mon Sep 17 00:00:00 2001 From: David Glick Date: Sun, 25 Aug 2024 18:58:08 -0700 Subject: [PATCH] Fix replay without explicit replay file (#37) * Fix replay without explicit replay file * changelog --- CHANGES.md | 2 +- cookieplone/cli.py | 2 +- news/37.bugfix | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 news/37.bugfix diff --git a/CHANGES.md b/CHANGES.md index 95ada75..a819f62 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -14,7 +14,7 @@ ### Bug fixes: -- Fix issue with Welcome Screen display [@ericof] +- Fix issue with Welcome Screen display [@ericof] ## 0.7.0 (2024-05-27) diff --git a/cookieplone/cli.py b/cookieplone/cli.py index 7becb7b..ae481d0 100644 --- a/cookieplone/cli.py +++ b/cookieplone/cli.py @@ -151,7 +151,7 @@ def cli( if replay_file and replay_file.exists(): # Use replay_file replay = replay_file - else: + elif not replay: # Annotate extra_context extra_context = parse_extra_content(extra_context) extra_context["__generator_signature"] = internal.signature_md(repo_path) diff --git a/news/37.bugfix b/news/37.bugfix new file mode 100644 index 0000000..3e7f4ae --- /dev/null +++ b/news/37.bugfix @@ -0,0 +1 @@ +Fix error with `--replay`. @davisagli