Show More
@@ -54,7 +54,10 b' class transaction:' | |||||
54 | print "transaction abort!" |
|
54 | print "transaction abort!" | |
55 |
|
55 | |||
56 | for f, o in self.entries: |
|
56 | for f, o in self.entries: | |
57 | self.opener(f, "a").truncate(o) |
|
57 | try: | |
|
58 | self.opener(f, "a").truncate(o) | |||
|
59 | except: | |||
|
60 | print "failed to truncate", f | |||
58 |
|
61 | |||
59 | self.entries = [] |
|
62 | self.entries = [] | |
60 |
|
63 |
General Comments 0
You need to be logged in to leave comments.
Login now