1
0
mirror of synced 2025-02-20 12:40:59 +01:00

dd better error message when failing to find background images.

This commit is contained in:
Jennifer Taylor 2021-09-29 02:09:07 +00:00
parent 6569925b18
commit db6171582e

View File

@ -679,7 +679,10 @@ def render_path(
else:
raise Exception("Invalid image specified as background!")
background = adjust_background_loop(background, background_loop_start, background_loop_end, background_loop_offset)
if background:
background = adjust_background_loop(background, background_loop_start, background_loop_end, background_loop_offset)
else:
raise Exception("Did not find any background images to load!")
else:
background = None