[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

@@ -9,6 +9,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- Arch
- **wget** as a hard requirement for Arch package management
### Improvements
- General
- useless code removed
## [0.9.21] 2021-11-20
### Fixes

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