From 5fa3504ad08b38bdd88602ba239e7a22f55a8dfb Mon Sep 17 00:00:00 2001 From: Joe Shaw Date: Wed, 8 May 2013 09:40:20 -0400 Subject: [PATCH] use string find() instead of index(). Fixes #880. We're expecting a non-match to return -1, which is what find() does, but index() instead throws a ValueError. --- pelican/tools/pelican_import.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pelican/tools/pelican_import.py b/pelican/tools/pelican_import.py index 9e477c2c..8ebb7659 100755 --- a/pelican/tools/pelican_import.py +++ b/pelican/tools/pelican_import.py @@ -37,7 +37,7 @@ def decode_wp_content(content, br=True): pre_index = 0 for pre_part in pre_parts: - start = pre_part.index("