Skip to content

Commit

Permalink
propagate ptql error message to PyErr
Browse files Browse the repository at this point in the history
  • Loading branch information
dougm committed Jun 15, 2011
1 parent 2f80905 commit e0ef7a3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bindings/python/_sigar.c
Expand Up @@ -151,6 +151,10 @@ static int pysigar_parse_pid(sigar_t *sigar, PyObject *args, long *pid)
PySigar_Croak();
}
}
else {
PyErr_SetString(PyExc_ValueError, error.message);
return !SIGAR_OK;
}
}
}

Expand Down

0 comments on commit e0ef7a3

Please sign in to comment.