We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4a7456a commit 1bde5a4Copy full SHA for 1bde5a4
SU2_PY/topology_optimization.py
@@ -123,7 +123,7 @@ def obj_val(self, x):
123
# clear previous output and run direct solver
124
try:
125
os.remove(self._objValFile)
126
- except OSError:
+ except Exception:
127
pass
128
129
@@ -150,7 +150,7 @@ def obj_der(self, x):
150
151
152
os.remove(self._objDerFile)
153
154
155
N = x.shape[0]
156
y = np.ndarray((N,))
@@ -200,7 +200,7 @@ def con_der(self, x):
200
# clear previous output and run solver
201
202
os.remove(self._conDerFile)
203
204
205
206
0 commit comments