mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-29 20:34:22 +01:00
Fixed ValueError
This commit is contained in:
parent
e287efd2c4
commit
73b3f94c82
2 changed files with 6 additions and 1 deletions
|
@ -1,6 +1,8 @@
|
|||
4.8.6 - 21/05/2023
|
||||
Updated:
|
||||
- Load the database when used #172
|
||||
Fixed:
|
||||
- ValueError with search command
|
||||
|
||||
4.8.5 - 18/05/2023
|
||||
Fixed:
|
||||
|
|
|
@ -69,7 +69,10 @@ class SearchPackage(Configs):
|
|||
}
|
||||
|
||||
def summary_of_searching(self) -> None:
|
||||
name_length: int = max(len(name['name']) for name in self.data_dict.values())
|
||||
try:
|
||||
name_length: int = max(len(name['name']) for name in self.data_dict.values())
|
||||
except ValueError:
|
||||
pass
|
||||
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