# HG changeset patch
# User Chris Eldredge <chris.eldredge@gmail.com>
# Date 1348519582 -3600
# Node ID 09bb5670eec61f93ccb1896b49dd828de5f111f6
# Parent  a57391bb42d7df60016b52fe35abc2423fe2e24d
Handle ErrorResponse raised instead of LookupError since mercurial 2.3.0

diff -r a57391bb42d7 -r 09bb5670eec6 __init__.py
--- a/__init__.py	Mon Sep 24 20:56:45 2012 +0100
+++ b/__init__.py	Mon Sep 24 21:46:22 2012 +0100
@@ -2,7 +2,7 @@
 import sys
 
 # If using TortoiseHg, obtain Python-Markdown and tell Python where to find it:
-#sys.path.append("c:/python27/Lib/site-packages/markdown-2.2.0-py2.7.egg")
+sys.path.append("c:/Program Files (x86)/MSBuild/The Motley Fool/Fool.Build/Resources/hgext.markdown/markdown-2.2.0-py2.7.egg")
 
 import logging, markdown, mimetypes
 from mercurial import extensions, encoding, util
@@ -68,7 +68,7 @@
 	try:
 		fctx = webutil.filectx(web.repo, req)
 		text = fctx.data()
-	except LookupError, inst:
+	except ErrorResponse, inst:
 		try:
 			return webcommands.manifest(web, req, tmpl)
 		except ErrorResponse: