From f4ea2af924b1379adf391c321bf2c7cf97d31999 Mon Sep 17 00:00:00 2001 From: Aleksej Pawlowskij Date: Fri, 2 Aug 2019 12:26:44 +0200 Subject: [PATCH] Make 'handshake_complete' safe --- src/galaxy/api/plugin.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/galaxy/api/plugin.py b/src/galaxy/api/plugin.py index 39152e6..f8cdc61 100644 --- a/src/galaxy/api/plugin.py +++ b/src/galaxy/api/plugin.py @@ -208,7 +208,10 @@ class Plugin: def _initialize_cache(self, data: Dict): self._persistent_cache = data - self.handshake_complete() + try: + self.handshake_complete() + except Exception: + logging.exception("Unhandled exception during `handshake_complete` step") self._pass_control_task = asyncio.create_task(self._pass_control()) @staticmethod