Skip to content

Commit

Permalink
Uses get() to avoid KeyError
Browse files Browse the repository at this point in the history
  • Loading branch information
gq1869 authored Jan 13, 2025
1 parent 3dc7005 commit 0bc6fdf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/TPDBMarkers/tpdbMarkers.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def processScene(scene):
log.info("Saving markers")
mp.import_scene_markers(stash, markers, scene["id"], 15)
# skip if there is already a movie linked
if settings["createMovieFromScene"] and len(scene["movies"]) ==0:
if settings["createMovieFromScene"] and len(scene.get("movies", [])) == 0:
movies=[]
for m in data["movies"]:
movie=processMovie(m)
Expand Down

0 comments on commit 0bc6fdf

Please sign in to comment.