I left btfriend running while I was on vacation, and this is what I found when I came back:
-------------------------------------------------
Rechecking sharing Mon Aug 8 07:57:26 2005
-------------------------------------------------
Traceback (most recent call last):
File "/usr/local/bin/btfriend.py", line 265, in ?
CheckSharing()
File "/usr/local/bin/btfriend.py", line 234, in CheckSharing
response = LoadBittorrentTrackerData()
File "/usr/local/bin/btfriend.py", line 63, in LoadBittorrentTrackerData
return bdecode(urlopen(TRACKER + '/scrape').read())
File "/usr/lib/python2.4/urllib2.py", line 130, in urlopen
return _opener.open(url, data)
File "/usr/lib/python2.4/urllib2.py", line 358, in open
response = self._open(req, data)
File "/usr/lib/python2.4/urllib2.py", line 376, in _open
'_open', req)
File "/usr/lib/python2.4/urllib2.py", line 337, in _call_chain
result = func(*args)
File "/usr/lib/python2.4/site-packages/BitTorrent/zurllib.py", line 33, in http_open
fp = HTTPHandler.http_open(self,req)
File "/usr/lib/python2.4/urllib2.py", line 1021, in http_open
return self.do_open(httplib.HTTPConnection, req)
File "/usr/lib/python2.4/urllib2.py", line 996, in do_open
raise URLError(err)
urllib2.URLError: <urlopen error (110, 'Connection timed out')>
Perhaps it should handle errors in a better way (i.e. not crash).