diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/Server/Plugin.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/lib/Server/Plugin.py b/src/lib/Server/Plugin.py index 86f843aca..294d97853 100644 --- a/src/lib/Server/Plugin.py +++ b/src/lib/Server/Plugin.py @@ -826,11 +826,9 @@ class PrioDir(Plugin, Generator, XMLDirectoryBacked): def get_attrs(self, entry, metadata): """ get a list of attributes to add to the entry during the bind """ - for src in list(self.entries.values()): - cached = src.Cache(metadata) - if cached == False: - self.logger.error("Called before data loaded") - raise PluginExecutionError + for src in self.entries.values(): + src.Cache(metadata) + matching = [src for src in list(self.entries.values()) if (src.cache and entry.tag in src.cache[1] and |