Show More
@@ -134,7 +134,12 b' class PickleShareDB(UserDict.DictMixin):' | |||||
134 |
|
134 | |||
135 | for f in hfiles: |
|
135 | for f in hfiles: | |
136 | # print "using",f |
|
136 | # print "using",f | |
137 | all.update(self[f]) |
|
137 | try: | |
|
138 | all.update(self[f]) | |||
|
139 | except KeyError: | |||
|
140 | print "Corrupt",f,"deleted - hset is not threadsafe!" | |||
|
141 | del self[f] | |||
|
142 | ||||
138 | self.uncache(f) |
|
143 | self.uncache(f) | |
139 |
|
144 | |||
140 | return all |
|
145 | return all | |
@@ -351,4 +356,4 b' def main():' | |||||
351 | if __name__== "__main__": |
|
356 | if __name__== "__main__": | |
352 | main() |
|
357 | main() | |
353 |
|
358 | |||
354 | No newline at end of file |
|
359 |
General Comments 0
You need to be logged in to leave comments.
Login now