Raise exception in Drawing module for unsupported objects

This commit is contained in:
wmayer 2012-06-05 13:55:56 +02:00
parent ff187c13a9
commit 3bd569252c

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;