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