return self._try_solution(options.ABS_TOL / 10)
except (PoorScalingException, GameUnsolvableException):
- # Ok, that didn't work. Let's try it with the default
- # tolerance, and whatever happens, happens.
- return self._try_solution(options.ABS_TOL)
+ # Ok, that didn't work. Let's try it with the default tolerance..
+ try:
+ return self._try_solution(options.ABS_TOL / 10)
+ except (PoorScalingException, GameUnsolvableException) as error:
+ # Well, that didn't work either. Let's verbosify the matrix
+ # output format before we allow the exception to be raised.
+ printing.options['dformat'] = options.DEBUG_FLOAT_FORMAT
+ raise error
def condition(self):