Minor bug fixes.

This commit is contained in:
Kovid Goyal 2007-07-01 21:42:23 +00:00
parent b1a0514303
commit 3e9119e0e5
2 changed files with 2 additions and 2 deletions

View File

@ -13,7 +13,7 @@
## with this program; if not, write to the Free Software Foundation, Inc.,
## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
''' E-book management software'''
__version__ = "0.3.62"
__version__ = "0.3.63"
__docformat__ = "epytext"
__author__ = "Kovid Goyal <kovid@kovidgoyal.net>"
__appname__ = 'libprs500'

View File

@ -930,7 +930,7 @@ class HTMLConverter(object):
elif tag.has_key('href') and not self.link_exclude.match(tag['href']):
purl = urlparse(tag['href'])
path = unquote(purl[2])
if path and os.path.splitext(path)[1][1:].lower() in \
if path and os.access(path, os.R_OK) and os.path.splitext(path)[1][1:].lower() in \
['png', 'jpg', 'bmp', 'jpeg']:
self.process_image(path, tag_css)
else: