mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-07 03:34:15 +02:00
[arch] refactoring: removing useless exception handling
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user