[arch] refactoring: removing useless exception handling

This commit is contained in:
Vinicius Moreira
2021-11-22 13:38:15 -03:00
parent f6062ae822
commit 5121bb40ef
2 changed files with 5 additions and 4 deletions

View File

@@ -2650,10 +2650,7 @@ class ArchManager(SoftwareManager):
self.enabled = enabled
def can_work(self) -> bool:
try:
return self.arch_distro and pacman.is_available()
except FileNotFoundError:
return False
return self.arch_distro and pacman.is_available()
def cache_to_disk(self, pkg: ArchPackage, icon_bytes: bytes, only_icon: bool):
pass