Throw docker_registry.exceptions in case of wrong configuration passed