Skip to content

Commit

Permalink
Bugfix: Placing list manipulation inside try block (aeon0#681)
Browse files Browse the repository at this point in the history
  • Loading branch information
egut125 authored Apr 1, 2022
1 parent 545fd9c commit 33109ca
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ui/player_bar.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 33109ca

Please sign in to comment.