From c276770478bd64b6c61bba25874b1047c617b328 Mon Sep 17 00:00:00 2001 From: Valerio Mariani <valerio.mariani@desy.de> Date: Sun, 9 Jul 2017 13:22:55 +0200 Subject: [PATCH] Fixed bug in path checking --- cfel_cxi.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cfel_cxi.py b/cfel_cxi.py index db8d11d..fc13c46 100644 --- a/cfel_cxi.py +++ b/cfel_cxi.py @@ -274,9 +274,9 @@ class CXIWriter: raise RuntimeError('Adding stacks to the writer is not possible after initialization.') for entry in self._cxi_stacks: - if path == entry.path: + if path == self._cxi_stacks[entry].path: if overwrite is True: - del (self._cxi_stacks[name]) + del (self._cxi_stacks[entry]) else: raise RuntimeError('Cannot write the entry. Data is already present at the specified path.') -- GitLab