I have a function like this:

```
def get_output(input_number):
     output = max(7, min(12-0.7*input_number, 12)
     return output

```

I would like to be able to handle the error incase the input number is Nan or None. In that case, the customized error should be thrown to the user that the input value is not a number and execution should stop.