Fehler in der Mongo -Abfrage Python fangen

try:
  connection.test.foo.find_one()
except pymongo.errors.OperationFailure:
  print "caught"
Good Grivet