mirror of
https://github.com/ItsDrike/dotfiles.git
synced 2024-12-25 12:44:35 +00:00
Use proper types
This commit is contained in:
parent
cecf4a132f
commit
4b77cd29af
|
@ -33,7 +33,7 @@ def install_packages() -> None:
|
|||
except PackageAlreadyInstalled:
|
||||
Print.cancel(f"Package {package} is already installed.")
|
||||
except InvalidPackage as e:
|
||||
Print.warning(e)
|
||||
Print.warning(str(e))
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
|
|
@ -60,6 +60,6 @@ class Package:
|
|||
try:
|
||||
loaded_packages.append(cls(package, aur=aur, git=git))
|
||||
except InvalidPackage as e:
|
||||
Print.warning(e)
|
||||
Print.warning(str(e))
|
||||
|
||||
return loaded_packages
|
||||
|
|
Loading…
Reference in a new issue