qgis / qgis4.0_api

Tracker for QGIS 4.0 API related issues and developer discussion
3 stars 1 forks source link

Throw exception on invalid layers #84

Open nyalldawson opened 6 years ago

nyalldawson commented 6 years ago

When an invalid map layer is created, throw a specific exception for PyQGIS. This would make detecting and handling invalid layers easier, and make bug fixing easier for new users to PyQGIS who do not know to check for invalid layers.