Show More
@@ -28,14 +28,14 b' def _playback(journal, report, opener, e' | |||
|
28 | 28 | if o or not unlink: |
|
29 | 29 | try: |
|
30 | 30 | opener(f, 'a').truncate(o) |
|
31 | except: | |
|
31 | except IOError: | |
|
32 | 32 | report(_("failed to truncate %s\n") % f) |
|
33 | 33 | raise |
|
34 | 34 | else: |
|
35 | 35 | try: |
|
36 | 36 | fn = opener(f).name |
|
37 | 37 | os.unlink(fn) |
|
38 | except IOError, inst: | |
|
38 | except (IOError, OSError), inst: | |
|
39 | 39 | if inst.errno != errno.ENOENT: |
|
40 | 40 | raise |
|
41 | 41 | os.unlink(journal) |
General Comments 0
You need to be logged in to leave comments.
Login now