from logging import getLogger

import laboratory
from lab_assistant import tasks

logger = getLogger(__name__)


class Experiment(laboratory.Experiment):

    publish_tasks = [
        tasks.store_result,
    ]

    def publish(self, result):
        for task in self.publish_tasks:
            try:
                task(result)
            except Exception, e:
                logger.exception(e)
        return super(Experiment, self).publish(result)

@@ -350,17 +350,19 @@
 xception
-,
+ as
  e:%0A    

except x as y