Skip to content

Commit 75de670

Browse files
committed
Added an attept at drawing anything that is iterable...
1 parent 5eb80d2 commit 75de670

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

pyganja/script_api.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,4 +240,7 @@ def render_scene_string_appropriately(scene_string):
240240
elif isinstance(objects, GanjaScene):
241241
render_scene_string_appropriately(str(objects))
242242
else:
243-
raise ValueError('The input is not a list of objects or ganja scene')
243+
try:
244+
render_scene_string_appropriately([i for i in objects])
245+
except:
246+
raise ValueError('The input cannot be interpreted, it is not a list of objects or ganja scene')

0 commit comments

Comments
 (0)