diff options
Diffstat (limited to 'src/olpc/datastore/xapianindex.py')
-rw-r--r-- | src/olpc/datastore/xapianindex.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/olpc/datastore/xapianindex.py b/src/olpc/datastore/xapianindex.py index ce09c62..d46e0c7 100644 --- a/src/olpc/datastore/xapianindex.py +++ b/src/olpc/datastore/xapianindex.py @@ -183,8 +183,10 @@ class IndexManager(object): # done in the thread to keep things async and # latency lower. # we know that there is filestuff or it - # wouldn't have been queued + # wouldn't have been queued filename, mimetype = filestuff + if isinstance(filename, file): + filename = filename.name fp = converter(filename, mimetype) if fp: # read in at a fixed block size, try to |