开发者

DeprecationWarning when pushing to Mercurial repo

开发者 https://www.devze.com 2023-01-02 06:27 出处:网络
I\'m trying to serve a merurial repository with apache, and when I try to push to the repo I see this in the apache error.log.On the client side I get a 500 erro开发者_StackOverflow社区r.

I'm trying to serve a merurial repository with apache, and when I try to push to the repo I see this in the apache error.log. On the client side I get a 500 erro开发者_StackOverflow社区r.

How do I get this to go away????

[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,


The deprecation warning is a red herring. It's just letting you know that the server code accessed a python exception in a way that will eventually be unsupported. What you really want to find out is what exception was raised in the first place. (Was there an error message along with that 500 error?)

0

精彩评论

暂无评论...
验证码 换一张
取 消