Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better error handling for calls to Lua functions from Python #189

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update lupa/_lupa.pyx
Co-authored-by: scoder <[email protected]>
  • Loading branch information
guidanoli and scoder authored Sep 1, 2021
commit 19874d43bb8b4594db965dba57db12b3dda5b8ff
3 changes: 1 addition & 2 deletions lupa/_lupa.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -1565,8 +1565,7 @@ cdef class _PyException:
raise TypeError("Type cannot be instantiated from Python")

def __str__(self):
einfo = self.etype, self.value, self.traceback
return ''.join(format_exception(*einfo)).strip()
return ''.join(format_exception(self.etype, self.value, self.traceback)).strip()


cdef int py_to_lua_error(LuaRuntime runtime, lua_State* L, bytes msg):
Expand Down