Commit ab08ecc8 authored by Daniel Salzman's avatar Daniel Salzman

python/libknot: make KnotCtlError.str() one-liner

parent 2d9673eb
......@@ -93,7 +93,7 @@ class KnotCtlError(Exception):
self.data = data
def __str__(self):
return "message: %s\ndata: %s" % (self.message, self.data)
return "%s (data: %s)" % (self.message, self.data)
class KnotCtlType(IntEnum):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment