Skip to content

Commit 9bedbe2

Browse files
author
Tim Vaillancourt
committed
adding missing close for #40
1 parent 5b7166d commit 9bedbe2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

MongoBackup/Upload/S3.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ def __init__(self, access_key, secret_key, s3_host='s3.amazonaws.com', secure=Tr
2323
self._conn = None
2424
self.connect()
2525

26+
def close(self):
27+
if not self._conn:
28+
self._conn.close()
29+
pass
30+
2631
def connect(self):
2732
if not self._conn:
2833
try:

0 commit comments

Comments
 (0)