Skip to content
Snippets Groups Projects
Commit f176a93e authored by AlQuemist's avatar AlQuemist
Browse files

PyInterpreter: improve error messaging and traceback

The error message reporting and traceback is corrected and improved.
The full error report is displayed in the GUI and sent to stderr.

Example (stderr):
```
---PyInterpreter: Error:
PyInterpreter:BornAgain: Failed executing Python function 'get_sample'
------------------------------
* Python exception:
No module named 'noneexistantpackage'

Traceback (most recent call last):

  File "<string>", line 6, in get_sample

ModuleNotFoundError: No module named 'noneexistantpackage'

------------------------------
* Runtime environment:
------------------------------
```

Resolves issue #1063
parent e9907a4c
No related branches found
No related tags found
1 merge request!2839PyInterpreter: fx Python memory management regarding new and borrowed references; improve error messaging
Pipeline #186272 passed