Skip to content

Commit

Permalink
Get better error messages from plugin server exceptions (#373)
Browse files Browse the repository at this point in the history
  • Loading branch information
mjrosengrant authored Sep 15, 2023
1 parent fdeaab3 commit 015ca49
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nanome/beta/nanome_sdk/plugin_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ async def run(self, nts_host, nts_port, plugin_name, description, plugin_class):
self.poll_nts_task = asyncio.create_task(self.poll_nts())
await self.poll_nts_task
except Exception as e:
logger.error(e)
use_exc_info = sys.exc_info()[0] is not None
logger.error(e, exc_info=use_exc_info)
finally:
self.keep_alive_task.cancel()
self.poll_nts_task.cancel()
Expand Down

0 comments on commit 015ca49

Please sign in to comment.