Check for proper returned value. fixes #126

This commit is contained in:
Ruud committed 2012-04-21 21:13:55 +02:00
1 parent 6220d3e63d
commit a9830ab0a6
2 files changed
+4 -2

No files matched your search

+2 -1
View File
@@ -56,7 +56,8 @@ class Manage(Plugin):
log.info('Updating manage library: %s' % directory)
identifiers = fireEvent('scanner.folder', folder = directory, newer_than = last_update, single = True)
added_identifiers.extend(identifiers)
if identifiers:
added_identifiers.extend(identifiers)
# Break if CP wants to shut down
if self.shuttingDown():