Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomeu Vizoso <tomeu@tomeuvizoso.net>2007-12-13 12:07:22 (GMT)
committer Tomeu Vizoso <tomeu@tomeuvizoso.net>2007-12-13 12:18:51 (GMT)
commite1e59bb3c83e34f0e4be3dd6e74e8636326f71b8 (patch)
tree1b976e1479dccfa3d5eb34b4214edf3d0343e0cd
parent193925621f35ee91d0458a21f47e95eba2671186 (diff)
Check the secore config file is not empty. (neuralis)
-rw-r--r--secore/indexerconnection.py2
1 files changed, 2 insertions, 0 deletions
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)