From 2a4ffd489895b75bd23041f54eedcbdd08ac248c Mon Sep 17 00:00:00 2001 From: Torxed Date: Fri, 8 Nov 2024 18:42:27 +0100 Subject: [PATCH] Fixed ruff complaints --- archinstall/lib/exceptions.py | 2 +- archinstall/lib/pacman/__init__.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/archinstall/lib/exceptions.py b/archinstall/lib/exceptions.py index b9a928965..8d93c308c 100644 --- a/archinstall/lib/exceptions.py +++ b/archinstall/lib/exceptions.py @@ -46,4 +46,4 @@ class DownloadTimeout(Exception): ''' class PacmanIssue(Exception): - pass \ No newline at end of file + pass diff --git a/archinstall/lib/pacman/__init__.py b/archinstall/lib/pacman/__init__.py index 655592a2a..c5862ed72 100644 --- a/archinstall/lib/pacman/__init__.py +++ b/archinstall/lib/pacman/__init__.py @@ -285,13 +285,13 @@ def __enter__(self) -> 'Pacman': if getattr(self, 'dbpath', None) is None: self.dbpath = pathlib.Path('/var/lib/pacman/') if self.repos is None: - raise PacmanIssue(f"No repositories are configured.") + raise PacmanIssue("No repositories are configured.") # Session is our libalpm handle with 2 databases self._session = pyalpm.Handle(str(self.rootdir), str(self.dbpath)) if not self._session: - raise PacmanIssue(f"Could not initate a pyalpm handle.") + raise PacmanIssue("Could not initate a pyalpm handle.") for repo in self.repos: self._session.register_syncdb(repo, pyalpm.SIG_DATABASE_OPTIONAL)