Possible fix for bug #2738.

This commit is contained in:
John Schember 2009-06-28 19:23:06 -04:00
parent f9b51db519
commit be1b29d35b

View File

@ -183,6 +183,9 @@ class PRS505(CLI, Device):
return zip(paths, sizes, ctimes, cycle([on_card]))
def add_books_to_metadata(self, locations, metadata, booklists):
if not locations or not metadata:
return
metadata = iter(metadata)
for location in locations:
info = metadata.next()