fix crash bug

stl_dim
Don Bright 2011-12-07 00:02:34 -06:00
parent 20a3eaa097
commit 462a4f4f44
1 changed files with 2 additions and 1 deletions

View File

@ -457,7 +457,8 @@ def main():
wikidir = os.path.join(logpath,sysid+'_report')
if verbose: print 'erasing files in',wikidir
map(lambda x:os.remove(os.path.join(wikidir,x)), os.listdir(wikidir))
try: map(lambda x:os.remove(os.path.join(wikidir,x)), os.listdir(wikidir))
except: pass
print 'writing',len(imgs),'images and',len(txtpages),'text pages to:\n', ' .'+wikidir.replace(os.getcwd(),'')
for pgname in sorted(imgs): trysave( os.path.join(wikidir,pgname), imgs[pgname])
for pgname in sorted(txtpages): trysave( os.path.join(wikidir,pgname), txtpages[pgname])