From da0d751af98a7241a82a7bd6e96e38ff102e0c14 Mon Sep 17 00:00:00 2001 From: Mattia Rizzolo Date: Mon, 1 Aug 2022 17:34:45 +0200 Subject: [PATCH] deploy: also include the instantiation of Deployer within the try/execpt Signed-off-by: Mattia Rizzolo --- deploy/management/commands/deploy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy/management/commands/deploy.py b/deploy/management/commands/deploy.py index b8f9bb6..06843da 100644 --- a/deploy/management/commands/deploy.py +++ b/deploy/management/commands/deploy.py @@ -109,8 +109,8 @@ class Command(BaseCommand): deploy_dir = os.path.abspath(os.path.dirname(sys.argv[0])) os.chdir(deploy_dir) - deployer = Deployer(dry_run=options["dry_run"]) try: + deployer = Deployer(dry_run=options["dry_run"]) deployer.select_branch() email_handler.fromaddr = deployer.ref.commit.committer.email log.debug("Email from: %s", email_handler.fromaddr) -- GitLab