Commit 4554ecd6 authored by Klaus Wölfel's avatar Klaus Wölfel

neo check: do not raise if bucket of mapping_bin is none

parent 4eeb2f58
......@@ -20,7 +20,14 @@ def DataBucketStream_getChecksumListFromNEONodeListForKey(self, \
# get directly checksum as we have access to data stream over self
data = self.getBucketByKey(key)
data = data[:threshold]
try:
data = data[:threshold]
except TypeError as e:
analysis_line = self.getAggregateRelatedValue(portal_type="Data Analysis Line")
if analysis_line.getReference() == "mapping_bin":
return []
else:
raise TypeError("%s, %s, key: %s" %(e, self.getRelativeUrl(), key))
checksum = hashlib.sha256(data).hexdigest()
checksum_list.append(checksum)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment