Correction: The OSError is only raised if `settings.GEOS_LIBRARY_PATH` or `settings.GDAL_LIBRARY_PATH`  is set to an invalid path.

When testing with various configuration of GEOS and GDAL, I was specifying that path to simulate the libraries not being installed.

What you did now is better, because previously that would pass silently.