Commit be51264b authored by Wout De Nolf's avatar Wout De Nolf

[oarjob] bug in nested fixed_stats calls

parent db19c6df
......@@ -119,9 +119,12 @@ class Job(object):
@contextmanager
def fixed_stats(self):
self._fixed_stats = self.stats
first = not bool(self._fixed_stats)
if first:
self._fixed_stats = self.stats
yield
self._fixed_stats = None
if first:
self._fixed_stats = None
def __getitem__(self, key):
return self.stats.get(key, None)
......
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