Bugfix: Placing list manipulation inside try block (#681)

This commit is contained in:
egut125
2022-04-01 11:52:11 -04:00
committed by GitHub
parent d615f11608
commit 51de6f9f00

View File

@@ -33,8 +33,9 @@ def get_experience():
)[0]
split_text = ocr_result.text.split(' ')
split_text = split_text[split_text.index("EXPERIENCE:"):]
try:
split _text = split_text[split_text.index("EXPERIENCE:"):]
current_exp = int(split_text[1].replace(',', '').replace('.', ''))
required_exp = int(split_text[3].replace(',', '').replace('.', ''))
return current_exp, required_exp