Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/olpc/datastore/indexstore.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/olpc/datastore/indexstore.py b/src/olpc/datastore/indexstore.py
index 47ba25b..8ed9cd6 100644
--- a/src/olpc/datastore/indexstore.py
+++ b/src/olpc/datastore/indexstore.py
@@ -77,7 +77,7 @@ class IndexStore(object):
document = Document()
document.add_term(_PREFIX_UID + uid)
document.add_term(_PREFIX_ACTIVITY + properties.get('activity', ''))
- document.add_term(_PREFIX_MIME_TYPE + properties['mime_type'])
+ document.add_term(_PREFIX_MIME_TYPE + properties.get('mime_type', ''))
document.add_value(_VALUE_UID, uid)
document.add_value(_VALUE_TIMESTAMP, str(properties['timestamp']))