From 2ea71119335df773e4b3bd0d46358289bc85cf43 Mon Sep 17 00:00:00 2001 From: Erwin Coumans Date: Sat, 28 Jan 2017 13:03:01 -0800 Subject: [PATCH] [pybullet] clear error after parsing UDP string argument (instead of shared memory 'int' argument) --- examples/pybullet/pybullet.c | 3 +++ 1 file changed, 3 insertions(+) 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(); } } }