Skip to content

Commit ec27f68

Browse files
author
Tim Vaillancourt
committed
add a conditional to exception handler just in case
1 parent e90a146 commit ec27f68

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

MongoBackup/Backup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,11 +143,11 @@ def cleanup_and_exit(self, code, frame):
143143
self.backup_name
144144
))
145145

146-
logging.info("Cleanup complete. Exiting")
147-
148146
if self._lock:
149147
self._lock.release()
150148

149+
logging.info("Cleanup complete. Exiting")
150+
151151
sys.exit(1)
152152

153153
def exception(self, error_message):

0 commit comments

Comments
 (0)