Skip to content
Snippets Groups Projects
Commit 9cb1f0cb authored by Mohamed, Fawzi Roberto (fawzi)'s avatar Mohamed, Fawzi Roberto (fawzi)
Browse files

caching_backend: better error message when adding values to closed sections

parent ae6ad54b
No related branches found
No related tags found
No related merge requests found
...@@ -141,7 +141,10 @@ class CachingSectionManager(object): ...@@ -141,7 +141,10 @@ class CachingSectionManager(object):
gI = self.lastSectionGIndex gI = self.lastSectionGIndex
else: else:
gI = gIndex gI = gIndex
self.openSections[gI].addValue(valueMetaInfo, value) try:
self.openSections[gI].addValue(valueMetaInfo, value)
except:
raise Exception("Cannot add value to section %d (%d) of %s, as it is not open" % (gI, gIndex, self.metaInfo.name))
def setArrayValues(self, valueMetaInfo, value, offset = None, gIndex = -1): def setArrayValues(self, valueMetaInfo, value, offset = None, gIndex = -1):
if gIndex == -1: if gIndex == -1:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment