Skip to content

Commit

Permalink
Fixed ruff complaints
Browse files Browse the repository at this point in the history
  • Loading branch information
Torxed committed Nov 8, 2024
1 parent f6d2803 commit 2a4ffd4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion archinstall/lib/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,4 @@ class DownloadTimeout(Exception):
'''

class PacmanIssue(Exception):
pass
pass
4 changes: 2 additions & 2 deletions archinstall/lib/pacman/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 2a4ffd4

Please sign in to comment.