Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomeu Vizoso <tomeu@sugarlabs.org>2008-12-23 11:23:12 (GMT)
committer Tomeu Vizoso <tomeu@sugarlabs.org>2008-12-23 11:23:12 (GMT)
commit2186ae37845372c0af18823648ade7b5fe6fbdd3 (patch)
tree9e03792153e0e54dd8739a3f5bab13c412e27e16
parentd4566feae841a971ef57ba2ff7eeb548632b3eb1 (diff)
Dont expect the mime_type property when indexing an entry
-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']))