Skip to content

Commit

Permalink
Revert "More informative OptimizerResult.message in case of excepti…
Browse files Browse the repository at this point in the history
…ons"

This reverts commit 72e0e7b.
  • Loading branch information
dweindl committed Oct 30, 2023
1 parent 2d81189 commit bb971a9
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions pypesto/optimize/optimizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -1337,11 +1337,8 @@ def minimize(
try:
opt.minimize(x0)
msg = self._convert_exitflag_to_message(opt)
except RuntimeError:
import sys
import traceback

msg = "\n".join(traceback.format_exception(*sys.exc_info()))
except RuntimeError as err:
msg = str(err)

optimizer_result = OptimizerResult(
x=opt.x_min,
Expand Down

0 comments on commit bb971a9

Please sign in to comment.