Skip to content

Commit

Permalink
Fix to check list length
Browse files Browse the repository at this point in the history
  • Loading branch information
ryukau committed Jun 10, 2022
1 parent 722b000 commit 9c836b1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion package/studiorack.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,12 @@ def create_studiorack_data(package_dir, platforms):
# Otherwise, `ProcessorUID` should be retrieved from `source/fuid.hpp`.
#
plugfactory_cpp = plugin_dir / Path("source/plugfactory.cpp")
screenshot_png = list((plugin_dir / Path("resource")).glob("*.png"))[0]
screenshot_png = list((plugin_dir / Path("resource")).glob("*.png"))
if len(screenshot_png) == 0:
print(f"Skipping screenshot of {plugin_name}, {plugin_dir}")
continue
else:
screenshot_png = screenshot_png[0]
audiosample = Path(f"audiosample/{name}.flac")
manual_en_md = Path(f"../docs/manual/{manual_name}/{manual_name}_en.md")

Expand Down

0 comments on commit 9c836b1

Please sign in to comment.