Try except.. everything.
This commit is contained in:
parent
b3b3303213
commit
55df1c20ee
|
@ -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),
|
||||
|
|
Loading…
Reference in a new issue