[library-web] [mallard] don't skip language on pages that fails the mallard index cache



commit 9d22f678e37c74b45d4845ff7b52e067e0ac5ee3
Author: Frédéric Péters <fpeters 0d be>
Date:   Wed Apr 6 11:24:36 2011 +0530

    [mallard] don't skip language on pages that fails the mallard index cache

 src/modtypes/mallard.py |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
---
diff --git a/src/modtypes/mallard.py b/src/modtypes/mallard.py
index 04f06bc..d296a05 100644
--- a/src/modtypes/mallard.py
+++ b/src/modtypes/mallard.py
@@ -248,8 +248,6 @@ class MallardModule(DocModule):
                 try:
                     page = mallard_cache.add_page(xml_file)
                 except xml.parsers.expat.ExpatError:
-                    if lang in doc.languages:
-                        doc.languages.remove(lang)
                     logging.warn('failed to add %s to mallard cache file for lang %s' % (
                                             xml_file, lang))
                     continue



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]