diff mercurial/hgweb/webcommands.py @ 36281:0ef50a5e3ae1

hgweb: translate Abort in help command to 404 error c3784e3c3e8d changed the exception type to be raised if unknowncmd=False.
author Yuya Nishihara <yuya@tcha.org>
date Sun, 27 Dec 2015 13:08:51 +0900
parents baca93a47992
children a748a5d1d7c3
line wrap: on
line diff
--- a/mercurial/hgweb/webcommands.py	Mon Jan 08 11:11:06 2018 +0900
+++ b/mercurial/hgweb/webcommands.py	Sun Dec 27 13:08:51 2015 +0900
@@ -1403,7 +1403,7 @@
 
     try:
         doc = helpmod.help_(u, commands, topic, subtopic=subtopic)
-    except error.UnknownCommand:
+    except error.Abort:
         raise ErrorResponse(HTTP_NOT_FOUND)
     return tmpl('help', topic=topicname, doc=doc)