推送到Mercurial仓库时的弃用警告

时间:2010-06-06 19:24:17

标签: python apache mercurial

我正在尝试使用apache服务一个merurial存储库,当我尝试推送到repo时,我在apache error.log中看到了这一点。在客户端,我得到500错误。

如何让它消失????

[Sun Jun 06 14:43:25 2010] [error] [client 192.168.1.8] /var/lib/python-support/python2.6/mercurial/hgweb/common.py:24: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6
[Sun Jun 06 14:43:25 2010] [error] [client 192.168.1.8]   self.message = message
[Sun Jun 06 14:43:25 2010] [error] [client 192.168.1.8] /var/lib/python-support/python2.6/mercurial/hgweb/hgweb_mod.py:104: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6
[Sun Jun 06 14:43:25 2010] [error] [client 192.168.1.8]   if not inst.message:
[Sun Jun 06 14:43:25 2010] [error] [client 192.168.1.8] /var/lib/python-support/python2.6/mercurial/hgweb/hgweb_mod.py:106: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6
[Sun Jun 06 14:43:25 2010] [error] [client 192.168.1.8]   return '0\\n%s\\n' % inst.message,

1 个答案:

答案 0 :(得分:0)

弃用警告是一个红色的鲱鱼。它只是让你知道服务器代码以最终不受支持的方式访问python异常。你真正想知道的是首先提出的例外情况。 (是否有错误消息以及500错误?)