NZEC Run time error Python

Hey. I am not able to understand what is causing this error and the fix for the same.

enter_amt=int(input())
balance_amt=float(input())

if enter_amt<=(balance_amt+0.5):
if enter_amt%5==0:
print(balance_amt-enter_amt-0.5)
else:
print(balance_amt)
else:
print(balance_amt)

Use try except block