try:
    value = int("x")
except ValueError:
    value = None
