Crash occurs when calling with `EXEC_DEFAULT` context. In this case `text->filepath` might be `nullptr` and cause a crash. Fix by raising a Python error message in this case.
Crash occurs when calling with `EXEC_DEFAULT` context. In this case `text->filepath` might be `nullptr` and cause a crash. Fix by raising a Python error message in this case.