Skip to content

Commit f4ea2af

Browse files
apawlowskijrbierbasz-gog
authored andcommitted
Make 'handshake_complete' safe
1 parent 3bcc674 commit f4ea2af

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/galaxy/api/plugin.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,10 @@ def _get_capabilities(self):
208208

209209
def _initialize_cache(self, data: Dict):
210210
self._persistent_cache = data
211-
self.handshake_complete()
211+
try:
212+
self.handshake_complete()
213+
except Exception:
214+
logging.exception("Unhandled exception during `handshake_complete` step")
212215
self._pass_control_task = asyncio.create_task(self._pass_control())
213216

214217
@staticmethod

0 commit comments

Comments
 (0)