4316: [NarWeb] Missing document.png
svn: r17742
This commit is contained in:
parent
dda9c5eaf6
commit
f86751865c
@ -272,8 +272,7 @@ def run_thumbnailer(mime_type, src_file, dest_file, size=SIZE_NORMAL):
|
||||
'%o' : dest_file,
|
||||
}
|
||||
cmdlist = [ sublist.get(x, x) for x in cmd.split() ]
|
||||
os.spawnvpe(os.P_WAIT, cmdlist[0], cmdlist, os.environ)
|
||||
return True
|
||||
return os.spawnvpe(os.P_WAIT, cmdlist[0], cmdlist, os.environ) == 0
|
||||
return False
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
|
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user