diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/Server/Metadata.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/Server/Metadata.py b/src/lib/Server/Metadata.py index 177735264..97d9b14dd 100644 --- a/src/lib/Server/Metadata.py +++ b/src/lib/Server/Metadata.py @@ -103,7 +103,7 @@ class MetadataStore(SingleXMLFileBacked): raise MetadataConsistencyError prof = self.profiles[profile] # should we uniq here? V - bundles = reduce(lambda x, y:x + y, [self.classes.get(cls) for cls in prof.classes]) + bundles = reduce(lambda x, y:x + y, [self.classes.get(cls, []) for cls in prof.classes]) if not self.images.has_key(image): syslog(LOG_ERR, "Metadata: Image %s not defined" % image) raise MetadataConsistencyError |