You would not use try and except for this.
Try and except us used for trapping errors such as those generated when you try to convert a string to an int.
You are trying to "range check" and input and you could use a while loop as below:
num = int(input ("get number"))
if num > 0 and num < 3: break
If it works - please update the post and +1