Hoạt động:
try:
connection.test.foo.find_one()
except pymongo.errors.OperationFailure as e:
print e.code
print e.details
Hoạt động:
try:
connection.test.foo.find_one()
except pymongo.errors.OperationFailure as e:
print e.code
print e.details