Skip to content

Commit

Permalink
set exception string for IBM i no-ops
Browse files Browse the repository at this point in the history
  • Loading branch information
Jesse Gorzinski committed Feb 19, 2019
1 parent e423fdb commit 437954e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions psutil/_psutil_aix.c
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ psutil_proc_name_and_args(PyObject *self, PyObject *args) {
static PyObject *
psutil_proc_threads(PyObject *self, PyObject *args) {
#ifdef __PASE__
PyErr_SetString(PyExc_NotImplementedError, "not implemented on PASE for IBM i");
return NULL;
#else
long pid;
Expand Down Expand Up @@ -249,6 +250,7 @@ psutil_proc_threads(PyObject *self, PyObject *args) {
static PyObject *
psutil_proc_io_counters(PyObject *self, PyObject *args) {
#ifdef __PASE__
PyErr_SetString(PyExc_NotImplementedError, "not implemented on PASE for IBM i");
return NULL;
#else
long pid;
Expand Down Expand Up @@ -485,6 +487,7 @@ psutil_disk_partitions(PyObject *self, PyObject *args) {
static PyObject *
psutil_net_io_counters(PyObject *self, PyObject *args) {
#ifdef __PASE__
PyErr_SetString(PyExc_NotImplementedError, "not implemented on PASE for IBM i");
return NULL;
#else
perfstat_netinterface_t *statp = NULL;
Expand Down Expand Up @@ -632,6 +635,7 @@ psutil_boot_time(PyObject *self, PyObject *args) {
static PyObject *
psutil_per_cpu_times(PyObject *self, PyObject *args) {
#ifdef __PASE__
PyErr_SetString(PyExc_NotImplementedError, "not implemented on PASE for IBM i");
return NULL;
#else
int ncpu, rc, i;
Expand Down Expand Up @@ -705,6 +709,7 @@ psutil_per_cpu_times(PyObject *self, PyObject *args) {
static PyObject *
psutil_disk_io_counters(PyObject *self, PyObject *args) {
#ifdef __PASE__
PyErr_SetString(PyExc_NotImplementedError, "not implemented on PASE for IBM i");
return NULL;
#else
PyObject *py_retdict = PyDict_New();
Expand Down Expand Up @@ -775,6 +780,7 @@ psutil_disk_io_counters(PyObject *self, PyObject *args) {
static PyObject *
psutil_virtual_mem(PyObject *self, PyObject *args) {
#ifdef __PASE__
PyErr_SetString(PyExc_NotImplementedError, "not implemented on PASE for IBM i");
return NULL;
#else
int rc;
Expand Down Expand Up @@ -805,6 +811,7 @@ psutil_virtual_mem(PyObject *self, PyObject *args) {
static PyObject *
psutil_swap_mem(PyObject *self, PyObject *args) {
#ifdef __PASE__
PyErr_SetString(PyExc_NotImplementedError, "not implemented on PASE for IBM i");
return NULL;
#else
int rc;
Expand Down Expand Up @@ -834,6 +841,7 @@ psutil_swap_mem(PyObject *self, PyObject *args) {
static PyObject *
psutil_cpu_stats(PyObject *self, PyObject *args) {
#ifdef __PASE__
PyErr_SetString(PyExc_NotImplementedError, "not implemented on PASE for IBM i");
return NULL;
#else
int ncpu, rc, i;
Expand Down

0 comments on commit 437954e

Please sign in to comment.