Fix previous merge (again).

This commit is contained in:
Valentin Lorentz 2014-01-03 17:48:30 +00:00
parent 4a9d3ccd3e
commit b44a08d2bd
1 changed files with 2 additions and 1 deletions

View File

@ -161,7 +161,8 @@ class FlatfileMapping(MappingInterface):
self.currentId = 0
self._incrementCurrentId()
finally:
fd.close()
if 'fd' in locals():
fd.close()
def _canonicalId(self, id):
if id is not None: