Need to wrap the filter() output in a list

This commit is contained in:
cmdr2 2022-10-28 22:30:05 +05:30
parent d3e672d811
commit e781e5dd43

View File

@ -90,7 +90,7 @@ def setConfig(config):
print(traceback.format_exc())
if 'render_devices' in config:
gpu_devices = filter(lambda dev: dev.lower().startswith('gpu') or dev.lower().startswith('cuda'), config['render_devices'])
gpu_devices = list(filter(lambda dev: dev.lower().startswith('gpu') or dev.lower().startswith('cuda'), config['render_devices']))
else:
gpu_devices = []