Answers for "catch error in mongo query python"

0

catch error in mongo query python

try:
  connection.test.foo.find_one()
except pymongo.errors.OperationFailure:
  print "caught"
Posted by: Guest on August-09-2021

Python Answers by Framework

Browse Popular Code Answers by Language