improved error handling
Some checks failed
Build and deploy the backend to staging / Build and push image (pull_request) Failing after 2m12s
Build and deploy the backend to staging / Deploy to staging (pull_request) Has been skipped
Run linting on the backend code / Build (pull_request) Failing after 28s
Run testing on the backend code / Build (pull_request) Failing after 2m8s

This commit is contained in:
Helldragon67 2024-12-04 18:49:39 +01:00
parent 7f77ecab04
commit fdb5f34e26

View File

@ -70,6 +70,10 @@ class ShoppingManager:
# First generate the clusters
self.generate_clusters()
# Return empty list if no clusters were found
if len(set(self.cluster_labels)) == 0 :
return []
# Then generate the shopping locations
self.generate_shopping_locations()