Skip to content

Commit

Permalink
Collector catches Task failures and warns
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Mar 23, 2016
1 parent 1e32595 commit 0a0575c
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions holoviews/interface/collector.py
Original file line number Diff line number Diff line change
Expand Up @@ -545,11 +545,16 @@ def __call__(self, attrtree=Layout(), times=[], strict=False):
# computing results over the entire accumulated map
attrtree_buffer = Layout()
for task in self._scheduled_tasks:
if isinstance(task, Analyze) and task.mapwise:
task(attrtree, self.time_fn(), times)
else:
task(attrtree_buffer, self.time_fn(), times)
attrtree.update(attrtree_buffer)
try:
if isinstance(task, Analyze) and task.mapwise:
task(attrtree, self.time_fn(), times)
else:
task(attrtree_buffer, self.time_fn(), times)
attrtree.update(attrtree_buffer)
except Exception as e:
param.main.warning("Task %s at time %s failed with following "
"exception and was skipped:\n%s",
task, self.time_fn(), e)
if update_progress:
interval_hook.percent_range = (completion[i],
completion[i+1])
Expand Down

0 comments on commit 0a0575c

Please sign in to comment.