fix the handling of PGF_EXN_OTHER_ERROR

This commit is contained in:
krangelov
2021-09-25 08:11:05 +02:00
parent f82f19ba68
commit 4a0efda0e6
2 changed files with 1 additions and 6 deletions

View File

@@ -20,8 +20,6 @@ PgfExnType handleError(PgfExn err)
} else if (err.type == PGF_EXN_PGF_ERROR) {
PyErr_SetString(PGFError, err.msg);
free((char *)err.msg);
} else if (err.type == PGF_EXN_OTHER_ERROR) {
PyErr_SetString(PGFError, "an unknown error occured");
}
return err.type;
}