Fixed a potential bug.

This commit is contained in:
Jeremy Fincher 2004-12-02 04:51:58 +00:00
parent 7de6d11a65
commit cbba7c6115

View File

@ -192,8 +192,8 @@ class FlatfileMapping(MappingInterface):
def add(self, s):
line = self._joinLine(self.currentId, s)
fd = file(self.filename, 'r+')
try:
fd = file(self.filename, 'r+')
fd.seek(0, 2) # End.
fd.write(line)
return self.currentId