Add check for empty list

main
Anna Levenberg 4 years ago committed by Johannes 'josch' Schauer
parent b2c3b641db
commit 32b4ed1f43
Signed by untrusted user: josch
GPG Key ID: F2CBA5C78FBD83E1

@ -1991,6 +1991,9 @@ def convert(*images, **kwargs):
if not isinstance(images, (list, tuple)):
images = [images]
else:
if len(images) == 0:
raise ValueError("Unable to process empty list")
for img in images:
# img is allowed to be a path, a binary string representing image data

Loading…
Cancel
Save