diff --git a/zipline/messaging.py b/zipline/messaging.py index 623a6c0c..79e16ed5 100644 --- a/zipline/messaging.py +++ b/zipline/messaging.py @@ -64,9 +64,10 @@ class Component(object): #close all the sockets for sock in self.sockets: sock.close() - except: - qutil.LOGGER.exception("Unexpected error in run for {id}.".format(id=self.get_id())) + except Exception as e: + qutil.LOGGER.exception("Unexpected error in run for {id}.".format(id=self.get_id())) + raise e finally: self.context.destroy() @@ -476,4 +477,4 @@ class DataSource(Component): self.data_socket.send(json.dumps(event)) def get_type(self): - raise NotImplemented \ No newline at end of file + raise NotImplemented