Skip to content

Commit

Permalink
fix: linting
Browse files Browse the repository at this point in the history
  • Loading branch information
cjdcordeiro committed Feb 5, 2024
1 parent 35666d7 commit fd67f09
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions rockcraft_lpci_build/rockcraft_lpci_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import argparse
import atexit
import base64
import distro_info
import logging
import os
import shutil
Expand All @@ -12,8 +11,9 @@
import time
from datetime import datetime, timedelta, timezone
from pathlib import Path
import requests

import distro_info
import requests
import yaml
from git import Repo

Expand All @@ -28,7 +28,7 @@
jobs:
build-rock:
# The "series" field is included by the code
# The "series" field is included by the code
# The "architectures" field is included by the code
snaps:
# - name: lxd
Expand Down Expand Up @@ -433,7 +433,7 @@ def run(self) -> None:
logging.info(f"[launchpad] Logged in as {self.lp_user} ({self.launchpad.me})")
self.prepare_local_project()

logging.info(f"Creating .launchpad.yaml file...")
logging.info("Creating .launchpad.yaml file...")
self.write_lpci_configuration_file()
self.lp_repo = self.create_git_repository()
atexit.register(self.delete_git_repository, self.launchpad, self.lp_repo_path)
Expand All @@ -447,9 +447,9 @@ def run(self) -> None:
)
try:
self.push_to_lp(lp_repo_url)
except:
except Exception:
# Catch anything, for a graceful termination, to allow for the cleanup
logging.exception("Failed to push local project to Launchpad")
# Graceful termination to allow for the cleanup
return

logging.info(
Expand All @@ -460,7 +460,7 @@ def run(self) -> None:
successful_builds = self.wait_for_lp_builds()

if not successful_builds:
logging.error(f"No builds were successful! There are no rocks to retrieve")
logging.error("No builds were successful! There are no rocks to retrieve")
return

self.download_build_artefacts(successful_builds)
Expand Down

0 comments on commit fd67f09

Please sign in to comment.