[library-web] Do not fail on missing GTK Tutorial



commit 0582c55a298c2bbe26502352a788d1f31deae306
Author: Frédéric Péters <fpeters 0d be>
Date:   Mon Sep 27 14:34:02 2010 +0200

    Do not fail on missing GTK Tutorial

 src/modtypes/htmlfiles.py |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/modtypes/htmlfiles.py b/src/modtypes/htmlfiles.py
index 5017607..5ceab09 100644
--- a/src/modtypes/htmlfiles.py
+++ b/src/modtypes/htmlfiles.py
@@ -149,7 +149,10 @@ class HtmlFilesModule(DocModule):
             path = os.path.join(web_output_dir, 'index.html')
             if os.path.exists(path):
                 os.unlink(path)
-            os.symlink(self.index_filename, path)
+            try:
+                os.symlink(self.index_filename, path)
+            except OSError:
+                return
 
         title = re.findall('<title>(.*)</title>',
                 file(os.path.join(web_output_dir, 'index.html')).read())



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