Get OperationFailure error with PyMongo 2.7.1 -


i run operationfailure error pymongo 2.7.1 following code:

db.business.update(    {'_id': objectid(business_id)},       {         '$set': {'photos.primary': photo_url},         '$push': {'photos.secondary': old_primary_url}       } ) 

i following error, when primary member has value

<class 'pymongo.errors.operationfailure'>: '$set' empty 

has idea tackle this?

best


Comments

Popular posts from this blog

css - SVG using textPath a symbol not rendering in Firefox -

Java 8 + Maven Javadoc plugin: Error fetching URL -

order - Notification for user in user account opencart -