Commit fb220e5
shbhmexe
fix(py): remove silent exception handlers in topology_optimization (CodeQL/CodeFactor)
- Replace three `try/except ...: pass` blocks with existence checks before os.remove.
- No behavioral change; resolves “Unreachable except block” and “Empty except” findings.
Signed-off-by: shbhmexe <shubhushukla586@gmail.com>1 parent add720b commit fb220e5
1 file changed
Lines changed: 6 additions & 19 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
123 | | - | |
124 | | - | |
| 123 | + | |
| 124 | + | |
125 | 125 | | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | 126 | | |
131 | 127 | | |
132 | 128 | | |
| |||
149 | 145 | | |
150 | 146 | | |
151 | 147 | | |
152 | | - | |
153 | | - | |
| 148 | + | |
| 149 | + | |
154 | 150 | | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | 151 | | |
160 | 152 | | |
161 | 153 | | |
| |||
201 | 193 | | |
202 | 194 | | |
203 | 195 | | |
204 | | - | |
205 | | - | |
| 196 | + | |
| 197 | + | |
206 | 198 | | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | 199 | | |
213 | 200 | | |
214 | 201 | | |
| |||
0 commit comments