mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 11:09:23 +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):
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user