Skip to content

Commit 476abd5

Browse files
author
Thomas Goodwin
committed
Bugfix: ignoring CORBA.TRANSIENT exception when disconnecting the bulkio handler from a port that no longer exists.
1 parent d18809f commit 476abd5

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

rest/bulkio_handler.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222

2323
from bulkio.bulkioInterfaces import BULKIO__POA
2424

25+
from omniORB import CORBA
26+
2527
# third party imports
2628
from tornado import ioloop, gen
2729
from tornado import websocket
@@ -117,6 +119,8 @@ def on_close(self):
117119
logging.debug('Stream CLOSE')
118120
try:
119121
self.port.disconnectPort(self._portname)
122+
except CORBA.TRANSIENT:
123+
pass
120124
except Exception, e:
121125
logging.exception('Error disconnecting port %s' % self._portname)
122126

0 commit comments

Comments
 (0)