changeset 6924:e8332c8108ff

hgweb: generate error message only if nothing is passed
author Dirkjan Ochtman <dirkjan@ochtman.nl>
date Tue, 22 Jul 2008 18:21:37 +0200
parents ebf1462f2145
children 87abfefafe02
files mercurial/hgweb/common.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/hgweb/common.py	Thu Aug 21 11:35:17 2008 +0200
+++ b/mercurial/hgweb/common.py	Tue Jul 22 18:21:37 2008 +0200
@@ -17,7 +17,7 @@
     def __init__(self, code, message=None):
         Exception.__init__(self)
         self.code = code
-        if message:
+        if message is not None:
             self.message = message
         else:
             self.message = _statusmessage(code)