Public bug reported:
Binary package hint: ipcheck
ipcheck version 0.233-1 gives
Traceback (most recent call last):
File "/usr/sbin/ipcheck", line 5518, in <module>
_main(sys.argv)
File "/usr/sbin/ipcheck", line 5198, in _main
fp.close()
File "/usr/lib/python2.6/socket.py", line 273, in close
self._sock.close()
AttributeError: 'NoneType' object has no attribute 'close'
Lines of interest are
$ cat -n /usr/sbin/ipcheck | sed -n 5190,5198p
5190 try:
5191 fp = h2.getfile()
5192 httpdata = fp.read()
5193 fp.close()
5194 except:
5195 httpdata = "No output from http request."
5196
5197 # explicitly close
5198 fp.close()
$
It seems h2.getfile() is returning None causing problems when fp.close()
is attempted outside of the try-block.
** Affects: ipcheck (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/756657
Title:
ipcheck suffers exception; NoneType object has no attribute 'close'
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs