Shouldn't we add an `else: raise` here? Then the `if settings.configured:` below would be unnecessary.