koenverhagen commited on
Commit
d3dfc33
1 Parent(s): ae213bd

Update createlookalike.py

Browse files
Files changed (1) hide show
  1. createlookalike.py +3 -2
createlookalike.py CHANGED
@@ -148,7 +148,7 @@ async def calculate_shop(shop: Shop, feat_extractor) -> None:
148
  if await push_home(design_dict, im, shop):
149
  pass
150
  else:
151
- raise
152
 
153
 
154
  # idx_closest = sorted(range(len(similar_idx)), key=lambda k: similar_idx[k])
@@ -176,4 +176,5 @@ async def push_home(design_dict, im, shop):
176
  return True
177
 
178
  except Exception as e:
179
- return False
 
 
148
  if await push_home(design_dict, im, shop):
149
  pass
150
  else:
151
+ print("error sending recommendations")
152
 
153
 
154
  # idx_closest = sorted(range(len(similar_idx)), key=lambda k: similar_idx[k])
 
176
  return True
177
 
178
  except Exception as e:
179
+ print(e)
180
+ return False