Raise exception in Drawing module for unsupported objects

This commit is contained in:
wmayer
2012-06-05 13:55:56 +02:00
parent 2a677be827
commit 6c11955749

View File

@@ -139,6 +139,10 @@ exporter(PyObject *self, PyObject *args)
str_out.close();
break;
}
else {
PyErr_SetString(PyExc_TypeError, "Export as SVG of this object type is not supported by Drawing module");
return 0;
}
}
}
} PY_CATCH;