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

Java 8 + Maven Javadoc plugin: Error fetching URL -

android - How to delete or change the searchview icon inside the SearchView actionBar? -

c++ - Msgpack packing bools bug -