Fixed ValueError

This commit is contained in:
Dimitris Zlatanidis 2023-05-22 22:38:53 +03:00
parent e287efd2c4
commit 73b3f94c82
2 changed files with 6 additions and 1 deletions

View file

@ -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:

View file

@ -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} "