_app/settings/parser.py: Fix validation without the `redis` package
Description
The redis
package is marked as optional, however, schema validation of the configuration file currently fails without it. The reason is that the connections
array accepts both, SQL and Redis connections, which means that type checks are invoked for both.
This issue broke the BuildGrid docker image with the default configuration.
Changes proposed in this merge request:
- Catch
ImportError
in the redis provider type check. IfRedisProvider
cannot be imported,instance
can't possibly be of typeRedisProvider
, so we can simply returnFalse
Validation
BuildGrid should successfully start up with data/config/default.yml
in an environment without the redis
Python package.