Non-stopping of non name found object

In blender python, what is the best way of finding an object by a name?. In the case the object does not exist, what is the best way to catch the error, to prevent stopping of the script when the object of name is not found?.


name = "....."
try:
    obj = Blender.Object.Get(name)
    print "YAY!"
except ValueError,e:
    print "Error:",e

Thank you for that snippet, it was just what I was looking for.