mirror of https://github.com/Mikaela/Limnoria.git
Fixed a potential bug.
This commit is contained in:
parent
7de6d11a65
commit
cbba7c6115
|
@ -192,8 +192,8 @@ class FlatfileMapping(MappingInterface):
|
||||||
|
|
||||||
def add(self, s):
|
def add(self, s):
|
||||||
line = self._joinLine(self.currentId, s)
|
line = self._joinLine(self.currentId, s)
|
||||||
|
fd = file(self.filename, 'r+')
|
||||||
try:
|
try:
|
||||||
fd = file(self.filename, 'r+')
|
|
||||||
fd.seek(0, 2) # End.
|
fd.seek(0, 2) # End.
|
||||||
fd.write(line)
|
fd.write(line)
|
||||||
return self.currentId
|
return self.currentId
|
||||||
|
|
Loading…
Reference in New Issue