09bb5670eec6

Handle ErrorResponse raised instead of LookupError since mercurial 2.3.0
[view raw] [browse files]
author Chris Eldredge <chris.eldredge@gmail.com>
date Mon, 24 Sep 2012 21:46:22 +0100
parents a57391bb42d7
children 8015c328ad2a 9ebbaae19100
branches/tags (none)
files __init__.py

Changes

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: