Skip to content

Commit

Permalink
fixed replace again aaaaa
Browse files Browse the repository at this point in the history
  • Loading branch information
UnleashedGH committed Jul 7, 2021
1 parent 7417c1a commit d9eb867
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions yabac/dlg/find.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,8 @@ def get_value(ctrl):
value = ctrl.GetValue()
if value.startswith('0x'):
return int(value, 16)
tempFloat = float(value)
if isinstance(tempFloat, float):
try:
return int(value,10)
except ValueError:
return float(value)
return int(value, 10)

0 comments on commit d9eb867

Please sign in to comment.