4316: [NarWeb] Missing document.png
svn: r17744
This commit is contained in:
parent
296d7557b7
commit
19bfd81a9b
@ -252,8 +252,7 @@ def run_thumbnailer(mime_type, src_file, dest_file, size=const.THUMBSCALE):
|
|||||||
'%o' : dest_file,
|
'%o' : dest_file,
|
||||||
}
|
}
|
||||||
cmdlist = [ sublist.get(x, x) for x in cmd.split() ]
|
cmdlist = [ sublist.get(x, x) for x in cmd.split() ]
|
||||||
os.spawnvpe(os.P_WAIT, cmdlist[0], cmdlist, os.environ)
|
return os.spawnvpe(os.P_WAIT, cmdlist[0], cmdlist, os.environ) == 0
|
||||||
return True
|
|
||||||
return False
|
return False
|
||||||
|
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
|
@ -2943,7 +2943,7 @@ class MediaPage(BasePage):
|
|||||||
self.report.copy_file(thmb_path, npath)
|
self.report.copy_file(thmb_path, npath)
|
||||||
path = npath
|
path = npath
|
||||||
os.unlink(thmb_path)
|
os.unlink(thmb_path)
|
||||||
except IOError:
|
except EnvironmentError:
|
||||||
path = os.path.join("images", "document.png")
|
path = os.path.join("images", "document.png")
|
||||||
else:
|
else:
|
||||||
path = os.path.join("images", "document.png")
|
path = os.path.join("images", "document.png")
|
||||||
|
Loading…
Reference in New Issue
Block a user