Commits

Aleš Erjavec committed c048f85

Added a missing PyErr_Clear() call in 'Table.translate'.

Comments (0)

Files changed (1)

source/orange/lib_kernel.cpp

     if (PyArg_ParseTuple(args, "O&|i", cc_Domain, &domain))
       return WrapOrange(PExampleTable(mlnew TExampleTable(domain, weg)));
 
+    PyErr_Clear();
     PyObject *pargs, *guard = NULL;
     int keepMeta = 0;
     if (args && ((PyTuple_Size(args)==1) || ((PyTuple_Size(args)==2) && PyInt_Check(PyTuple_GET_ITEM(args, 1))))) {