Commit 66e1883
committed
boot-qemu.py: Use more specific exception class
New pylint warns:
boot-qemu.py:401:12: W0719: Raising too general exception: Exception (broad-exception-raised)
boot-qemu.py:431:16: W0719: Raising too general exception: Exception (broad-exception-raised)
The type of exception really does not matter, as we do not expect this script
to be called, so the exception will never be caught. However, it is easy to
silence this by switching to a more specific exception. FileNotFoundError is
descriptive so use this exception to silence the warning.
Signed-off-by: Nathan Chancellor <nathan@kernel.org>1 parent 1b837f3 commit 66e1883
1 file changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
398 | 398 | | |
399 | 399 | | |
400 | 400 | | |
401 | | - | |
| 401 | + | |
| 402 | + | |
402 | 403 | | |
403 | 404 | | |
404 | 405 | | |
| |||
428 | 429 | | |
429 | 430 | | |
430 | 431 | | |
431 | | - | |
| 432 | + | |
432 | 433 | | |
433 | 434 | | |
434 | 435 | | |
| |||
0 commit comments