X-Git-Url: http://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=src%2Fdunshire%2Ferrors.py;h=020186475b2a920f8425ffe0be76b3a27625de85;hb=0b87c8f49731a0516180f47ca9e79dc7989942d5;hp=99df2a12566250e622366766bb36880d1ba28c35;hpb=d1f749bdc31dcaef1dce62f303c1889f40ec0fe2;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)