diff options
author | Don Bright <hugh.m.bright@gmail.com> | 2011-12-07 06:02:34 (GMT) |
---|---|---|
committer | Don Bright <hugh.m.bright@gmail.com> | 2011-12-07 06:02:34 (GMT) |
commit | 462a4f4f44543d89be829eac6bb64a33854a4dd9 (patch) | |
tree | ab58e69424e585c6a433d1e0d36df1b029f59313 /tests/test_pretty_print.py | |
parent | 20a3eaa0971530643d74a95507341d0bc278ddb1 (diff) |
fix crash bug
Diffstat (limited to 'tests/test_pretty_print.py')
-rwxr-xr-x | tests/test_pretty_print.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test_pretty_print.py b/tests/test_pretty_print.py index 2a92bb4..955d021 100755 --- a/tests/test_pretty_print.py +++ b/tests/test_pretty_print.py @@ -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]) |