﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
28569	Broken error handling when fetching GDAL datasource layer by string.	Nick Pope	Nick Pope	"When working on ticket #28558, I noticed that the error handling was broken in the case of accessing a layer on a datasource by string name.

The `get_layer_by_name` function raised `GDALException` instead of returning `None` in the case of an invalid string name as is expected by `DataSource.__getitem__`.

Looking at all of the other `get_*_by_name` functions, they pass `errcheck=False` to avoid an exception being raised.

It seems as though this has been broken from the initial implementation."	Bug	closed	GIS	dev	Normal	fixed	gdal datasource layer indexerror		Unreviewed	1	0	0	0	0	0
