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.
1 parent 054aa7a commit 93f08cbCopy full SHA for 93f08cb
mongodb_consistent_backup/Backup/Mongodump/Mongodump.py
@@ -1,6 +1,5 @@
1
import os
2
import logging
3
-import sys
4
5
from math import floor
6
from subprocess import check_output
@@ -71,8 +70,7 @@ def can_gzip(self):
71
70
return True
72
return False
73
else:
74
- logging.fatal("Cannot find or execute the mongodump binary file %s!" % self.binary)
75
- sys.exit(1)
+ raise OperationError("Cannot find or execute the mongodump binary file %s!" % self.binary)
76
77
def summary(self):
78
return self._summary
0 commit comments