We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8352feb + 4f27f0a commit 73a0e2bCopy full SHA for 73a0e2b
mongodb_consistent_backup/Oplog/Oplog.py
@@ -3,6 +3,7 @@
3
4
from gzip import GzipFile
5
from bson import BSON, decode_file_iter
6
+from bson.codec_options import CodecOptions
7
8
from mongodb_consistent_backup.Errors import OperationError
9
@@ -44,7 +45,7 @@ def load(self):
44
45
try:
46
oplog = self.open()
47
logging.debug("Reading oplog file %s" % self.oplog_file)
- for change in decode_file_iter(oplog):
48
+ for change in decode_file_iter(oplog, CodecOptions(unicode_decode_error_handler="ignore")):
49
if 'ts' in change:
50
self._last_ts = change['ts']
51
if self._first_ts is None and self._last_ts is not None:
0 commit comments