mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-08 00:24: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
|
- Arch
|
||||||
- **wget** as a hard requirement for Arch package management
|
- **wget** as a hard requirement for Arch package management
|
||||||
|
|
||||||
|
### Improvements
|
||||||
|
- General
|
||||||
|
- useless code removed
|
||||||
|
|
||||||
|
|
||||||
## [0.9.21] 2021-11-20
|
## [0.9.21] 2021-11-20
|
||||||
### Fixes
|
### Fixes
|
||||||
|
|||||||
@@ -2650,10 +2650,7 @@ class ArchManager(SoftwareManager):
|
|||||||
self.enabled = enabled
|
self.enabled = enabled
|
||||||
|
|
||||||
def can_work(self) -> bool:
|
def can_work(self) -> bool:
|
||||||
try:
|
return self.arch_distro and pacman.is_available()
|
||||||
return self.arch_distro and pacman.is_available()
|
|
||||||
except FileNotFoundError:
|
|
||||||
return False
|
|
||||||
|
|
||||||
def cache_to_disk(self, pkg: ArchPackage, icon_bytes: bytes, only_icon: bool):
|
def cache_to_disk(self, pkg: ArchPackage, icon_bytes: bytes, only_icon: bool):
|
||||||
pass
|
pass
|
||||||
|
|||||||
Reference in New Issue
Block a user