4316: [NarWeb] Missing document.png

svn: r17742
This commit is contained in:
Michiel Nauta
2011-06-10 17:05:45 +00:00
parent dda9c5eaf6
commit f86751865c
2 changed files with 2 additions and 3 deletions

View File

@ -3082,7 +3082,7 @@ class MediaPage(BasePage):
self.report.copy_file(thmb_path, npath)
path = npath
os.unlink(thmb_path)
except IOError:
except EnvironmentError:
path = os.path.join("images", "document.png")
else:
path = os.path.join("images", "document.png")