Skip to content

Commit

Permalink
FEM: view provider electrostatic potential, use value error instead o…
Browse files Browse the repository at this point in the history
…f bare except
  • Loading branch information
berndhahnebach committed Jul 2, 2019
1 parent 95f3325 commit 2d7d6cf
Showing 1 changed file with 4 additions and 3 deletions.
Expand Up @@ -129,10 +129,11 @@ def _applyWidgetChanges(self):
quantity = None
try:
quantity = Units.Quantity(self._paramWidget.potentialTxt.text())
except:
except ValueError:
FreeCAD.Console.PrintMessage(
'Potential not set. OK has been triggered wihtout a green hook '
'in the input field. Not recognised input: {}\n'
'Wrong input. OK has been triggered without a green hook '
'in the input field. Not recognised input: "{}" '
'Potential has not been set.\n'
.format(self._paramWidget.potentialTxt.text())
)
if quantity is not None:
Expand Down

0 comments on commit 2d7d6cf

Please sign in to comment.