diff --git a/src/img2pdf.py b/src/img2pdf.py index 384117f..042c82f 100755 --- a/src/img2pdf.py +++ b/src/img2pdf.py @@ -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