this block should start with a ```if version is None: self.log.debug('No version specified)```. this block should be a ```version in versions``` and the else should throw the error.