mirror of
https://github.com/Steve-Tech/YAFI.git
synced 2026-04-19 16:50:36 +00:00
Add traceback to troubleshooting information
This commit is contained in:
@@ -149,6 +149,8 @@ class YafiApplication(Adw.Application):
|
|||||||
if hasattr(self, 'error'):
|
if hasattr(self, 'error'):
|
||||||
if isinstance(self.error, Exception):
|
if isinstance(self.error, Exception):
|
||||||
info += f"{type(self.error).__name__}: {self.error}\n\n"
|
info += f"{type(self.error).__name__}: {self.error}\n\n"
|
||||||
|
info += ''.join(traceback.format_exception(type(self.error), self.error, self.error.__traceback__))
|
||||||
|
info += "\n\n"
|
||||||
else:
|
else:
|
||||||
info += f"Error: {self.error}\n\n"
|
info += f"Error: {self.error}\n\n"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user