DawnC commited on
Commit
5484524
1 Parent(s): 2272752

Update scoring_calculation_system.py

Browse files
Files changed (1) hide show
  1. scoring_calculation_system.py +8 -2
scoring_calculation_system.py CHANGED
@@ -883,8 +883,14 @@ def calculate_compatibility_score(breed_info: dict, user_prefs: UserPreferences)
883
 
884
  final_score = amplify_score(final_weighted_score)
885
 
 
 
 
 
 
 
886
  except Exception as e:
887
  print(f"Error details: {str(e)}")
888
  print(f"breed_info: {breed_info}")
889
- # print(f"Error in calculate_compatibility_score: {str(e)}")
890
- return {k: 0.5 for k in ['space', 'exercise', 'grooming', 'experience', 'health', 'noise', 'overall']}
 
883
 
884
  final_score = amplify_score(final_weighted_score)
885
 
886
+ # except Exception as e:
887
+ # print(f"Error details: {str(e)}")
888
+ # print(f"breed_info: {breed_info}")
889
+ # # print(f"Error in calculate_compatibility_score: {str(e)}")
890
+ # return {k: 0.5 for k in ['space', 'exercise', 'grooming', 'experience', 'health', 'noise', 'overall']}
891
+
892
  except Exception as e:
893
  print(f"Error details: {str(e)}")
894
  print(f"breed_info: {breed_info}")
895
+ print(f"Stack trace:", traceback.format_exc())
896
+ raise e