summaryrefslogtreecommitdiff
path: root/bcdd/DDTable.py
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2019-07-17 23:03:51 +0200
committeremkael <emkael@tlen.pl>2019-07-17 23:03:51 +0200
commit71c8c49824938382aadcac62a1df7695b52184cc (patch)
tree40533a7e235005a721b9247f170cc23df7ce6fc3 /bcdd/DDTable.py
parent09189cd1a9cb319fcabefbb677c5f06d038f726c (diff)
Better error handling
Diffstat (limited to 'bcdd/DDTable.py')
-rw-r--r--bcdd/DDTable.py2
1 files changed, 1 insertions, 1 deletions
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)