Show More
@@ -102,7 +102,11 b' def rollback(opener, file):' | |||
|
102 | 102 | if o: |
|
103 | 103 | opener(f, "a").truncate(int(o)) |
|
104 | 104 | else: |
|
105 | fn = opener(f).name | |
|
106 | os.unlink(fn) | |
|
105 | try: | |
|
106 | fn = opener(f).name | |
|
107 | os.unlink(fn) | |
|
108 | except OSError, inst: | |
|
109 | if inst.errno != errno.ENOENT: | |
|
110 | raise | |
|
107 | 111 | os.unlink(file) |
|
108 | 112 |
General Comments 0
You need to be logged in to leave comments.
Login now