[library-web] Abort on HTML documents where the index.html file is missing
- From: Frederic Peters <fpeters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [library-web] Abort on HTML documents where the index.html file is missing
- Date: Mon, 27 Sep 2010 14:46:56 +0000 (UTC)
commit 199d1531bc4f6dfce9fcc1eb8218072f005ea46c
Author: Frédéric Péters <fpeters 0d be>
Date: Mon Sep 27 16:46:35 2010 +0200
Abort on HTML documents where the index.html file is missing
src/modtypes/htmlfiles.py | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/modtypes/htmlfiles.py b/src/modtypes/htmlfiles.py
index 5ceab09..c522f56 100644
--- a/src/modtypes/htmlfiles.py
+++ b/src/modtypes/htmlfiles.py
@@ -154,6 +154,9 @@ class HtmlFilesModule(DocModule):
except OSError:
return
+ if not os.path.exists(os.path.join(web_output_dir, 'index.html')):
+ return
+
title = re.findall('<title>(.*)</title>',
file(os.path.join(web_output_dir, 'index.html')).read())
if title:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]