import httplib引发ValueError

时间:2013-08-02 12:43:41

标签: python exception httplib

我有一个一直运行良好的python脚本,但是当我尝试启动它时突然开始抛出它:

Traceback (most recent call last):
  File "./mdp3.py", line 5, in <module>
    import httplib
  File "/usr/lib/python2.7/httplib.py", line 73, in <module>
    from urlparse import urlsplit
  File "/usr/lib/python2.7/urlparse.py", line 321, in <module>
    for a in _hexdig for b in _hexdig)
  File "/usr/lib/python2.7/urlparse.py", line 321, in <genexpr>
    for a in _hexdig for b in _hexdig)
ValueError: invalid literal for int() with base 16: '07'

由于它是在脚本执行任何操作之前发生的,所以我担心在我的python安装中可能会出现问题。但在我做任何激烈的事情之前,我想确定我是否误解了这个例外。

0 个答案:

没有答案