Commit fbf6e49
committed
Address Codacy findings on PR #96
* Bandit B110 (event_loop.py:189) — replace bare pass in
CDPEventListener.stop()'s ws.close() except with a debug-log line so
the cleanup failure is at least visible in WEBRunner.log.
* Bandit B110 (_navigation_mixin.py:161) — same fix for the best-effort
window-restore branch in _switch_to_window_by_attr.
* Bandit B310 (event_loop.py:72) — annotate the urlopen call with
'# nosec B310' plus a comment explaining the scheme is a fixed-literal
http:// (only debugger_address host:port varies, no user-controlled
scheme so no file:// risk).1 parent 22cb377 commit fbf6e49
2 files changed
Lines changed: 10 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
73 | 75 | | |
74 | 76 | | |
75 | 77 | | |
| |||
186 | 188 | | |
187 | 189 | | |
188 | 190 | | |
189 | | - | |
190 | | - | |
| 191 | + | |
| 192 | + | |
191 | 193 | | |
192 | 194 | | |
193 | 195 | | |
| |||
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
161 | | - | |
162 | | - | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
163 | 166 | | |
164 | 167 | | |
165 | 168 | | |
| |||
0 commit comments