diff options
Diffstat (limited to 'src/olpc/datastore/backingstore.py')
-rw-r--r-- | src/olpc/datastore/backingstore.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/olpc/datastore/backingstore.py b/src/olpc/datastore/backingstore.py index f163755..57bd787 100644 --- a/src/olpc/datastore/backingstore.py +++ b/src/olpc/datastore/backingstore.py @@ -572,9 +572,11 @@ class InplaceFileBackingStore(FileBackingStore): c = self.indexmanager.get(uid) path = c.get_property('filename', None) self.indexmanager.delete(uid) - path = os.path.join(self.uri, path) - if path and os.path.exists(path): - os.unlink(path) + + if path: + path = os.path.join(self.uri, path) + if os.path.exists(path): + os.unlink(path) def stop(self): if self.walker and self.walker.isAlive(): |