Skip to content
Snippets Groups Projects
Commit c2767704 authored by Valerio Mariani's avatar Valerio Mariani
Browse files

Fixed bug in path checking

parent d6bbc24e
No related branches found
No related tags found
No related merge requests found
...@@ -274,9 +274,9 @@ class CXIWriter: ...@@ -274,9 +274,9 @@ class CXIWriter:
raise RuntimeError('Adding stacks to the writer is not possible after initialization.') raise RuntimeError('Adding stacks to the writer is not possible after initialization.')
for entry in self._cxi_stacks: for entry in self._cxi_stacks:
if path == entry.path: if path == self._cxi_stacks[entry].path:
if overwrite is True: if overwrite is True:
del (self._cxi_stacks[name]) del (self._cxi_stacks[entry])
else: else:
raise RuntimeError('Cannot write the entry. Data is already present at the specified path.') raise RuntimeError('Cannot write the entry. Data is already present at the specified path.')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment