diff options
author | AUTOMATIC <16777216c@gmail.com> | 2022-10-11 15:00:16 +0300 |
---|---|---|
committer | AUTOMATIC <16777216c@gmail.com> | 2022-10-11 15:00:16 +0300 |
commit | dce7fc902ae2c6d9ffa71db67471abdcda72f82c (patch) | |
tree | 117d6c031f0e3bac94f9a424b50fdb239c3fd993 /scripts/xy_grid.py | |
parent | 530103b586109c11fd068eb70ef09503ec6a4caf (diff) | |
parent | 1a0a6a84c3149e236211d547471f5416cd1129f3 (diff) |
Merge remote-tracking branch 'origin/master'
Diffstat (limited to 'scripts/xy_grid.py')
-rw-r--r-- | scripts/xy_grid.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/xy_grid.py b/scripts/xy_grid.py index 0af5993c..16918c99 100644 --- a/scripts/xy_grid.py +++ b/scripts/xy_grid.py @@ -28,6 +28,9 @@ def apply_field(field): def apply_prompt(p, x, xs):
+ if xs[0] not in p.prompt and xs[0] not in p.negative_prompt:
+ raise RuntimeError(f"Prompt S/R did not find {xs[0]} in prompt or negative prompt.")
+
p.prompt = p.prompt.replace(xs[0], x)
p.negative_prompt = p.negative_prompt.replace(xs[0], x)
|