Fix for issue Issue #60

This commit is contained in:
Miroslav Stampar
2012-07-06 15:36:32 +02:00
parent 76f7f907c6
commit 438a636973
2 changed files with 87 additions and 69 deletions

View File

@@ -3147,7 +3147,7 @@ def hashDBRetrieve(key, unserialize=False, checkConf=False):
_ = "%s%s%s" % (conf.url or "%s%s" % (conf.hostname, conf.port), key, HASHDB_MILESTONE_VALUE)
_ = conf.hashDB.retrieve(_, unserialize) if kb.resumeValues and not (checkConf and any([conf.flushSession, conf.freshQueries])) else None
if not kb.inferenceMode and _ and PARTIAL_VALUE_MARKER in _:
if not kb.inferenceMode and not kb.fileReadMode and _ and PARTIAL_VALUE_MARKER in _:
_ = None
return _