Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def stream_images(*args, **kwargs):
'''Read in all images from args[0], a list of image paths'''
images = []
for idx, i in enumerate(kwargs['image_paths']):
try:
image = Image(i)
yield image
except:
print(' * image', i, 'could not be processed')