Bug#587698: ipcheck: on python2.6: AttributeError: 'NoneType' object has no attribute 'close'
Francois Marier <francois <at> debian.org>
2010-06-30 23:09:28 GMT
Package: ipcheck
Version: 0.233-1
Severity: normal
Tags: patch
Everytime I run ipcheck.py on cron (I have it in /etc/cron.hourly), I get this:
Traceback (most recent call last):
File "/usr/sbin/ipcheck.py", line 5518, in <module>
_main(sys.argv)
File "/usr/sbin/ipcheck.py", 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'
I have attached the patch I used to silence these errors.
Cheers,
Francois
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.33.5-grsec (SMP w/2 CPU cores)
Locale: LANG=fr_CA.UTF-8, LC_CTYPE=fr_CA.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
(Continue reading)