Verified Commit da0d751a authored by Mattia Rizzolo's avatar Mattia Rizzolo
Browse files

deploy: also include the instantiation of Deployer within the try/execpt



Signed-off-by: Mattia Rizzolo's avatarMattia Rizzolo <mattia@debian.org>
parent e9ee5dca
Pipeline #406492 failed with stage
in 2 minutes and 6 seconds
...@@ -109,8 +109,8 @@ class Command(BaseCommand): ...@@ -109,8 +109,8 @@ class Command(BaseCommand):
deploy_dir = os.path.abspath(os.path.dirname(sys.argv[0])) deploy_dir = os.path.abspath(os.path.dirname(sys.argv[0]))
os.chdir(deploy_dir) os.chdir(deploy_dir)
deployer = Deployer(dry_run=options["dry_run"])
try: try:
deployer = Deployer(dry_run=options["dry_run"])
deployer.select_branch() deployer.select_branch()
email_handler.fromaddr = deployer.ref.commit.committer.email email_handler.fromaddr = deployer.ref.commit.committer.email
log.debug("Email from: %s", email_handler.fromaddr) log.debug("Email from: %s", email_handler.fromaddr)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment