diff --git a/server/nightr/app.py b/server/nightr/app.py index 5ca1031..104a1bd 100644 --- a/server/nightr/app.py +++ b/server/nightr/app.py @@ -21,7 +21,11 @@ def probabilities(): probs = [] for name, (weight, strategy) in strategies.items(): - prob = strategy(phone_data) + try: + prob = strategy(phone_data) + except Exception as e: + print(f"Strategy {name} failed: {e}") + continue probs.append({ "name": name, "doc": inspect.getdoc(strategy),