From 71c8c49824938382aadcac62a1df7695b52184cc Mon Sep 17 00:00:00 2001 From: emkael Date: Wed, 17 Jul 2019 23:03:51 +0200 Subject: Better error handling --- bcdd/DDTable.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bcdd/DDTable.py') diff --git a/bcdd/DDTable.py b/bcdd/DDTable.py index cc08424..c4fc030 100644 --- a/bcdd/DDTable.py +++ b/bcdd/DDTable.py @@ -47,7 +47,7 @@ class DDTable(object): error = self._wrapper.getLastError(solver) if error: raise DDTableInvalidException( - 'BCalc error: ' + str(c_char_p(error))) + 'BCalc error: %s' % (c_char_p(error).value.decode('ascii'))) self._wrapper.delete(solver); return self._validate_table(result) -- cgit v1.2.3