tente exceto aumentar

try:
    some_code_that_may_raise_our_value_error()
except ValueError as err:
    print(err.args)
Tirbo06