while True :
try:
v = int( raw_input("Enter a value: "))
print "We got some valid input!"
x = 100 / v
break
except (KeyboardInterrupt):
print "well, ok, if you don't really want to.."
break
except ZeroDivisionError:
print "You can't divide by ZERO!"
except:
print "Some other error happened here"