mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 19:19:32 +01:00
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)
|
||||||
try:
|
|
||||||
fd = file(self.filename, 'r+')
|
fd = file(self.filename, 'r+')
|
||||||
|
try:
|
||||||
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
Block a user