Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 7, 2025
1 parent e94af54 commit 819f422
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions click_odoo_contrib/backupdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,11 @@ def main(env, dbname, dest, force, if_exists, format, filestore):
filestore = False
db = odoo.sql_db.db_connect(dbname)
try:
with backup(
format, dest, "w"
) as _backup, db.cursor() as cr, db_management_enabled():
with (
backup(format, dest, "w") as _backup,
db.cursor() as cr,
db_management_enabled(),
):
if format != "dump":
_create_manifest(cr, dbname, _backup)
if filestore:
Expand Down

0 comments on commit 819f422

Please sign in to comment.