Fix move_to on lists.

This commit is contained in:
David Bau
2022-08-23 06:08:59 -04:00
parent b6f716b678
commit d74ad22530
+1 -1
View File
@@ -47,7 +47,7 @@ def move_to(device, *containers):
if isinstance(container, dict):
g = list(container.items())
else:
g = enumerate(list)
g = enumerate(container)
for i, v in g:
moved = move_to(device, v)
if moved is not None: