mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-29 20:34:22 +01:00
Updated for except
This commit is contained in:
parent
43c9739078
commit
aefc6a654f
1 changed files with 1 additions and 2 deletions
|
@ -69,11 +69,10 @@ class SearchPackage(Configs):
|
|||
}
|
||||
|
||||
def summary_of_searching(self) -> None:
|
||||
name_length: int = 2
|
||||
try:
|
||||
name_length: int = max(len(name['name']) for name in self.data_dict.values())
|
||||
except ValueError:
|
||||
pass
|
||||
name_length: int = 2
|
||||
if self.matching:
|
||||
for item in self.data_dict.values():
|
||||
print(f"{item['repository']}: {self.cyan}{item['name']:<{name_length}}{self.endc} "
|
||||
|
|
Loading…
Add table
Reference in a new issue