X-Git-Url: http://gitweb.michael.orlitzky.com/?p=dunshire.git;a=blobdiff_plain;f=dunshire%2Fgames.py;h=2d6d6dae8d75352e4876954ba0cc2eff454c67f7;hp=3575da52b15c0b874a1ebb0fd346d46947d887d4;hb=7080424243887787b6ff925d611a837e8229ec6e;hpb=2b44481f8a79cbab75ddc0f73eea813b66e17d62 diff --git a/dunshire/games.py b/dunshire/games.py index 3575da5..2d6d6da 100644 --- a/dunshire/games.py +++ b/dunshire/games.py @@ -1028,9 +1028,14 @@ class SymmetricLinearGame: 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):