Skip to content

Commit 547a099

Browse files
authored
Merge pull request #1262 from cmu-delphi/except
Remove bare except in DV
2 parents a6b3ffe + c63a454 commit 547a099

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

doctor_visits/delphi_doctor_visits/weekday.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
# third party
1111
import cvxpy as cp
12+
from cvxpy.error import SolverError
1213
import numpy as np
1314

1415
# first party
@@ -92,7 +93,7 @@ def get_params(data):
9293
_ = prob.solve()
9394
params[i,:] = b.value
9495
break
95-
except:
96+
except SolverError:
9697
# If the magnitude of the objective function is too large, an error is
9798
# thrown; Rescale the objective function by going through loop
9899
pass

0 commit comments

Comments
 (0)