This repository was archived by the owner on May 3, 2026. It is now read-only.
Commit 87f94af
committed
fix: return None in get_amd_igpu_name when xrandr call fails
If xrandr exits with a non-zero code the except block logged a warning
but execution fell through to the pattern.findall() call, where
xrandr_output was never assigned, causing an immediate NameError crash.
Return None explicitly so callers receive the expected sentinel value.1 parent cbfa94b commit 87f94af
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
470 | 470 | | |
471 | 471 | | |
472 | 472 | | |
| 473 | + | |
473 | 474 | | |
474 | 475 | | |
475 | 476 | | |
| |||
0 commit comments