Commits

Jörg Rädler committed fe30604

Comments (0)

Files changed (2)

+00.00.00
+- getting numpy include path automatically in setup.py
+- fixed https://github.com/jraedler/Polygon2/issues/2
+
 03.07.12
 - version 2.0.5
 - changed some data types to prevent warnings
     val3 = PyObject_CallObject(rng, NULL);
     Py_DECREF(rng);
 
+    if (PyErr_Occurred()) {
+        PyErr_PrintEx(1);
+        Polygon_Raise(PolyError, "rng raised an error");
+        goto cleanup;
+    }
+    
     if ((! PyFloat_Check(val1)) || (! PyFloat_Check(val2)) || (! PyFloat_Check(val3))) {
          Polygon_Raise(PolyError,
                        "rng returned something other than a float");