mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 13:53:55 -07:00
Limit pyexception code to Python >= 3.10
This commit is contained in:
parent
340e63ec25
commit
39c846ada4
1 changed files with 2 additions and 0 deletions
|
@ -532,6 +532,7 @@ static int CmdScriptRun(const char *Cmd) {
|
|||
return PM3_SUCCESS;
|
||||
}
|
||||
|
||||
#if PY_MAJOR_VERSION == 3 && PY_MINOR_VERSION >= 10
|
||||
pyexception:
|
||||
PyConfig_Clear(&py_conf);
|
||||
if (PyStatus_IsExit(status)) {
|
||||
|
@ -541,6 +542,7 @@ pyexception:
|
|||
PrintAndLogEx(WARNING, "\nPython initialization failed with exception: %s", status.err_msg);
|
||||
}
|
||||
return PM3_ESOFT;
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue