mirror of
https://github.com/wassname/catalyst.git
synced 2026-07-02 21:54:18 +08:00
Fix for exception handling.
This commit is contained in:
@@ -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
|
||||
raise NotImplemented
|
||||
|
||||
Reference in New Issue
Block a user