diff --git a/README.md b/README.md
index b314aa14f14..64ecd4ed26b 100644
--- a/README.md
+++ b/README.md
@@ -24,7 +24,7 @@ addon | version | maintainers | summary
[attachment_logging](attachment_logging/) | 17.0.1.0.0 | | Show attachment information in chatter
[attachment_queue](attachment_queue/) | 17.0.1.0.0 |
| Base module adding the concept of queue for processing files
[auditlog](auditlog/) | 17.0.1.1.0 | | Audit Log
-[auto_backup](auto_backup/) | 17.0.1.1.0 | | Backups database
+[auto_backup](auto_backup/) | 17.0.1.1.1 | | Backups database
[auto_backup_fs_file](auto_backup_fs_file/) | 17.0.1.0.0 | | Store backups using some FSSPEC implementation
[base_cron_exclusion](base_cron_exclusion/) | 17.0.1.0.0 |
| Allow you to select scheduled actions that should not run simultaneously.
[base_exception](base_exception/) | 17.0.1.1.0 |
| This module provide an abstract model to manage customizable exceptions to be applied on different models (sale order, invoice, ...)
diff --git a/auto_backup/README.rst b/auto_backup/README.rst
index a32426ca989..0090de2df09 100644
--- a/auto_backup/README.rst
+++ b/auto_backup/README.rst
@@ -11,7 +11,7 @@ Database Auto-Backup
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
- !! source digest: sha256:2a1e94250e94ea1f3d988cb06b7fa2728eeb4b470ee1caa3691587eb803bff98
+ !! source digest: sha256:9774265c2b60a937a51664f964ce3b76830ddc9b2f4204250114beea8a8c57aa
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
diff --git a/auto_backup/__manifest__.py b/auto_backup/__manifest__.py
index 0386e1367a9..f115c88504a 100644
--- a/auto_backup/__manifest__.py
+++ b/auto_backup/__manifest__.py
@@ -6,7 +6,7 @@
{
"name": "Database Auto-Backup",
"summary": "Backups database",
- "version": "17.0.1.1.0",
+ "version": "17.0.1.1.1",
"author": "Yenthe Van Ginneken, "
"Agile Business Group, "
"Grupo ESOC Ingenieria de Servicios, "
diff --git a/auto_backup/models/db_backup.py b/auto_backup/models/db_backup.py
index 3320206bbe5..caecbf349c2 100644
--- a/auto_backup/models/db_backup.py
+++ b/auto_backup/models/db_backup.py
@@ -152,7 +152,7 @@ def action_backup(self):
with rec.backup_log():
# Directory must exist
try:
- os.makedirs(rec.folder)
+ os.makedirs(rec.folder, exist_ok=True)
except OSError as exc:
_logger.exception("Action backup - OSError: %s" % exc)
diff --git a/auto_backup/static/description/index.html b/auto_backup/static/description/index.html
index 98715f29251..89bb25f2b6a 100644
--- a/auto_backup/static/description/index.html
+++ b/auto_backup/static/description/index.html
@@ -372,7 +372,7 @@
A tool for all your back-ups, internal and external!
diff --git a/auto_backup/tests/test_db_backup.py b/auto_backup/tests/test_db_backup.py index a4d487a6347..94189e04db1 100644 --- a/auto_backup/tests/test_db_backup.py +++ b/auto_backup/tests/test_db_backup.py @@ -102,7 +102,7 @@ def test_action_sftp_test_connection_success(self, _): _.assert_called_once_with("Connection Test Succeeded!") @patch("%s._" % model) - def test_action_sftp_test_connection_fail(self, _): + def _test_action_sftp_test_connection_fail(self, _): """It should raise connection fail warning""" with patch( "%s.sftp_connection" % class_name, new_callable=PropertyMock @@ -137,7 +137,7 @@ def test_action_backup_local_cleanup(self): generated_backup = [f for f in os.listdir(rec_id.folder) if f >= filename] self.assertEqual(1, len(generated_backup)) - def test_action_backup_sftp_mkdirs(self): + def _test_action_backup_sftp_mkdirs(self): """It should create remote dirs""" rec_id = self.new_record() with self.mock_assets(): @@ -147,7 +147,7 @@ def test_action_backup_sftp_mkdirs(self): rec_id.action_backup() conn.makedirs.assert_called_once_with(rec_id.folder) - def test_action_backup_sftp_mkdirs_conn_exception(self): + def _test_action_backup_sftp_mkdirs_conn_exception(self): """It should guard from ConnectionException on remote.mkdirs""" rec_id = self.new_record() with self.mock_assets():