- soln_dict = solvers.conelp(c, G, h, C.cvxopt_dims(), A, b)
+ try:
+ soln_dict = solvers.conelp(c, G, h, C.cvxopt_dims(), A, b)
+ except ValueError as e:
+ if str(e) == 'math domain error':
+ # Oops, CVXOPT tried to take the square root of a
+ # negative number. Report some details about the game
+ # rather than just the underlying CVXOPT crash.
+ raise PoorScalingException(self)
+ else:
+ raise e