No traceback for Python exceptions
#1
With the latest builds I am not getting a traceback in the log when Python throws an exception.

There is an ERROR "bad format char passed to Py_BuildValue"

Code:
11:19:31 T:139739646654208   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.Exception'>
                                            Error Contents: Test Exception
                                            -->End of Python script error report<--
11:19:31 T:139739646654208   ERROR: SystemError
11:19:31 T:139739646654208   ERROR: :
11:19:31 T:139739646654208   ERROR: bad format char passed to Py_BuildValue

I've submitted trac ticket 16274.
Leopold's Repository: Home of LibreELEC Dev Updater ...
Reply
#2
It looks like commit 95e6801 caused this problem.

Without this commit I get

Code:
09:16:43 T:140674472621824   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the fo
llowing error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.Exception'>
                                            Error Contents: Test Exception
                                            Traceback (most recent call last):
                                              File "/home/lee/.kodi/addons/script.tb.problem/default.py", line 1, in <module>
                                                raise Exception("Test Exception")
                                            Exception: Test Exception
                                            -->End of Python script error report<--
Leopold's Repository: Home of LibreELEC Dev Updater ...
Reply

Logout Mark Read Team Forum Stats Members Help
No traceback for Python exceptions0