diff options
Diffstat (limited to 'src/olpc/datastore/indexstore.py')
-rw-r--r-- | src/olpc/datastore/indexstore.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/olpc/datastore/indexstore.py b/src/olpc/datastore/indexstore.py index bd689b0..1453f4c 100644 --- a/src/olpc/datastore/indexstore.py +++ b/src/olpc/datastore/indexstore.py @@ -64,6 +64,8 @@ class IndexStore(object): def remove_index(self): index_path = layoutmanager.get_instance().get_index_path() + if not os.path.exists(index_path): + return for f in os.listdir(index_path): os.remove(os.path.join(index_path, f)) |