Skip to content

Commit aaa38a3

Browse files
[tagScenesWithPerfTags] Add check if key exists (#539)
1 parent a8087f4 commit aaa38a3

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

plugins/tagScenesWithPerfTags/tagScenesWithPerfTags.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,15 +72,14 @@ def processScene(scene):
7272
PLUGIN_ARGS = json_input["args"]["mode"]
7373
if "processAll" in PLUGIN_ARGS:
7474
processAll()
75-
76-
7775
elif "hookContext" in json_input["args"]:
7876
id = json_input["args"]["hookContext"]["id"]
7977
if (
8078
(
8179
json_input["args"]["hookContext"]["type"] == "Scene.Update.Post"
8280
or "Scene.Create.Post"
83-
) and len(json_input["args"]["hookContext"]["inputFields"]) > 2
81+
) and "inputFields" in json_input["args"]["hookContext"]
82+
and len(json_input["args"]["hookContext"]["inputFields"]) > 2
8483
):
8584
scene = stash.find_scene(id)
8685
processScene(scene)

plugins/tagScenesWithPerfTags/tagScenesWithPerfTags.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Tag Scenes From Performer Tags
22
description: tags scenes with performer tags.
3-
version: 0.2
3+
version: 0.2.1
44
exec:
55
- python
66
- "{pluginDir}/tagScenesWithPerfTags.py"

0 commit comments

Comments
 (0)