Skip to content

Commit

Permalink
Update src/askem_beaker/contexts/model_configuration/context.py
Browse files Browse the repository at this point in the history
Co-authored-by: Five Grant <[email protected]>
  • Loading branch information
blanchco and fivegrant committed Jul 18, 2024
1 parent 65aa9a6 commit f0744b1
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/askem_beaker/contexts/model_configuration/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,13 +120,10 @@ async def load_config(self):
await self.execute(command)

async def post_execute(self, message):
try:
content = (await self.evaluate(self.get_code("get_config")))["return"]
self.beaker_kernel.send_response(
"iopub", "model_configuration_preview", content, parent_header=message.parent_header
)
except Exception as e:
raise
content = (await self.evaluate(self.get_code("get_config")))["return"]
self.beaker_kernel.send_response(
"iopub", "model_configuration_preview", content, parent_header=message.parent_header
)

@intercept()
async def save_model_config_request(self, message):
Expand Down

0 comments on commit f0744b1

Please sign in to comment.