Skip to content

Commit 0917bd8

Browse files
author
Reed O'Brien
committed
update and manipulate existing docs without upsert
1 parent 7269ec4 commit 0917bd8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pymongo/collection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ def update(self, spec, document, upsert=False, manipulate=False,
352352
if not isinstance(upsert, bool):
353353
raise TypeError("upsert must be an instance of bool")
354354

355-
if upsert and manipulate:
355+
if manipulate:
356356
document = self.__database._fix_incoming(document, self)
357357

358358
if kwargs:

0 commit comments

Comments
 (0)