diff options
| author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2021-11-02 13:30:49 +0100 |
|---|---|---|
| committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2021-11-05 13:43:56 +0100 |
| commit | 893f07e845f32c375c65675591df1c0cdaf4cb07 (patch) | |
| tree | d6cb1217cd9f68306d94a739f8a923416e42ef5b /examples/scriptableapplication/pythonutils.cpp | |
| parent | 567ef11d591d54f0de7e682213d4fd9efdf1afe0 (diff) | |
Handle crash when passing arguments of wrong type in embedded application
When passing arguments of wrong type in the scriptableapplication
example, PyRun_String() fails and a crash occurs (NameError: name
'AppLib' is not defined). Catch this and return nullptr to get at
an error message.
Change-Id: Ie22cf81ebb0c390bb31684eadf19b682e4487361
Reviewed-by: Christian Tismer <tismer@stackless.com>
(cherry picked from commit 7d6ea931fdc0d919ac9fa5ddadeb931c2578151f)
Diffstat (limited to 'examples/scriptableapplication/pythonutils.cpp')
0 files changed, 0 insertions, 0 deletions
