the ERROR or MEMORY_ERROR status codes.
"""
- def __init__(self, msg, ptr=None):
+ def __init__(self, msg):
super().__init__(msg)
# Steal the current thread's error.
self._ptr = native_bt.current_thread_take_error()
def __str__(self):
s = self._msg + '\n'
- for c in self:
+ for c in reversed(self):
s += str(c) + '\n'
return s