X-Git-Url: http://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=src%2Fdunshire%2Ferrors.py;h=020186475b2a920f8425ffe0be76b3a27625de85;hb=23a5893ede3a22653128d3e7a66fb3f6b80616b8;hp=99df2a12566250e622366766bb36880d1ba28c35;hpb=0a16e3c97d7f0e692428126ae1759fe0f925bf8f;p=dunshire.git diff --git a/src/dunshire/errors.py b/src/dunshire/errors.py index 99df2a1..0201864 100644 --- a/src/dunshire/errors.py +++ b/src/dunshire/errors.py @@ -118,5 +118,8 @@ class GameUnsolvableException(Exception): tpl = 'Solution failed with result "{:s}."\n' \ 'CVXOPT returned:\n {!s}' cvx_lines = _pretty_format_dict(self._solution_dict).splitlines() - cvx_str = '\n '.join(cvx_lines) # Indent the whole dict by two spaces. + + # Indent the whole dict by two spaces. + cvx_str = '\n '.join(cvx_lines) + return tpl.format(self._solution_dict['status'], cvx_str)