Use proper types

This commit is contained in:
ItsDrike 2021-01-14 14:56:59 +01:00
parent cecf4a132f
commit 4b77cd29af
No known key found for this signature in database
GPG key ID: 252D306F545351FC
2 changed files with 2 additions and 2 deletions

View file

@ -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__":

View file

@ -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