Get an exception's argument : Exception Info : Exception PYTHON examples


PYTHON examples » Exception » Exception Info »

 

Get an exception's argument


Get an exception's argument




try:
    num = float(raw_input("nEnter a number: "))
except(ValueError), e:
    print "That was not a number!  Or as Python would say:n", e

           
       



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON examples

 Navioo Exception
» Exception Info