Fix #1100 (LRF Conversion Error)

This commit is contained in:
Kovid Goyal 2008-09-30 07:59:00 -07:00
parent 827ee34f35
commit 5fa80a52a9

View File

@ -28,7 +28,10 @@ class ManifestItem(Resource):
if item.has_key('href'): if item.has_key('href'):
href = item['href'] href = item['href']
if unquote(href) == href: if unquote(href) == href:
href = quote(href) try:
href = quote(href)
except KeyError:
pass
res = ManifestItem(href, basedir=basedir, is_path=False) res = ManifestItem(href, basedir=basedir, is_path=False)
mt = item.get('media-type', '').strip() mt = item.get('media-type', '').strip()
if mt: if mt: