diff --git a/examples/pybullet/pybullet.c b/examples/pybullet/pybullet.c index 06c76c8fd..756894fb7 100644 --- a/examples/pybullet/pybullet.c +++ b/examples/pybullet/pybullet.c @@ -266,6 +266,9 @@ static PyObject* pybullet_connectPhysicsServer(PyObject* self, PyObject* args, P "connectPhysicsServer cannot parse second argument (either integer or string)"); return NULL; + } else + { + PyErr_Clear(); } } }