def convert(self, value, param, ctx):
        try:
            return Language.fromietf(value)
        except BabelfishError:
            self.fail('%s is not a valid language' % value)
dataset/ETHPy150Open Diaoul/subliminal/subliminal/cli.py/LanguageParamType.convert/original