Changeset 7c9eea
- Timestamp:
- 05/08/2010 05:50:57 AM (15 years ago)
- Children:
- 6bb4559
- Parents:
- 152475
- git-author:
- John Garland <johnnybg+deluge@gmail.com> (05/08/2010 05:50:04 AM)
- git-committer:
- John Garland <johnnybg+deluge@gmail.com> (05/08/2010 05:50:57 AM)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
deluge/ui/tracker_icons.py
r152475 r7c9eea 35 35 36 36 import os 37 from HTMLParser import HTMLParser 37 from HTMLParser import HTMLParser, HTMLParseError 38 38 from urlparse import urljoin, urlparse 39 39 from tempfile import mkstemp … … 353 353 elif f.check(error.NoResource, error.ForbiddenResource) and icons: 354 354 d = self.download_icon(icons, host) 355 elif f.check(IndexError ):355 elif f.check(IndexError, HTMLParseError): 356 356 # No icons, try favicon.ico as an act of desperation 357 357 d = self.download_icon([(urljoin(host_to_url(host), "favicon.ico"), extension_to_mimetype("ico"))], host)
Note:
See TracChangeset
for help on using the changeset viewer.