From d79514f49bdcaf162147eee4252e006d21e5af7b Mon Sep 17 00:00:00 2001 From: Tomeu Vizoso Date: Thu, 13 Dec 2007 12:07:22 +0000 Subject: Check the secore config file is not empty. (neuralis) --- diff --git a/secore/indexerconnection.py b/secore/indexerconnection.py index be82319..84ea9a1 100644 --- a/secore/indexerconnection.py +++ b/secore/indexerconnection.py @@ -82,6 +82,8 @@ class IndexerConnection(object): return fd = open(config_file) config_str = fd.read() + if not config_str: + return fd.close() (self._field_actions, mappings, self._next_docid) = _cPickle.loads(config_str) -- cgit v0.9.1