pypapago icon indicating copy to clipboard operation
pypapago copied to clipboard

KeyError Issue

Open MineEric64 opened this issue 5 years ago β€’ 1 comments

νŒŒνŒŒκ³ μ—μ„œ μž…λ ₯λ˜μ§€ μ•Šμ€ 단어λ₯Ό μ“°λ©΄ KeyErrorκ°€ λ‚˜μ˜€λŠ”λ°μš”. translator.py에 μžˆλŠ” μ½”λ“œλ₯Ό λ³΄λ‹ˆ 살짝 λ¬Έμ œκ°€ μžˆλŠ” 것 κ°™μ•„μ„œ 말씀 λ“œλ¦½λ‹ˆλ‹€.

59쀄뢀터 μ΄λ ‡κ²Œ μ“°μ‹œλ©΄ 될 것 κ°™μŠ΅λ‹ˆλ‹€.

 if not verbose:
            if 'translatedText' in response.json():
                return response.json()['translatedText']
            else:
                return ''

MineEric64 avatar Apr 27 '20 03:04 MineEric64

MineEric64 avatar Apr 27 '20 03:04 MineEric64