From 725822b49380a712c52a4d7c2d02d845b5e09092 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Thu, 8 Dec 2011 14:11:22 +0100 Subject: [PATCH] Do not try to read meta data on simple_copy files This helps to fix issue #121 Signed-off-by: Julien Danjou --- hyde/ext/plugins/meta.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hyde/ext/plugins/meta.py b/hyde/ext/plugins/meta.py index 5f69d40..9a7afb2 100644 --- a/hyde/ext/plugins/meta.py +++ b/hyde/ext/plugins/meta.py @@ -67,7 +67,7 @@ class MetaPlugin(Plugin): for resource in node.resources: if not hasattr(resource, 'meta'): resource.meta = Metadata({}, node.meta) - if resource.source_file.is_text: + if resource.source_file.is_text and not resource.simple_copy: self.__read_resource__(resource, resource.source_file.read_all()) def __read_resource__(self, resource, text):