Bug #11717
closedAfter introduction of banks in UV17Pro driver, UV17 driver reports multiple errors for banks
100%
Description
When download finishes or file is loaded, and Banks tab is selected in GUI, several (9) error dialog boxes are displayed, maybe for banks 2-N. Can be tested on stock Baofeng_UV-17.img in tests/images directory
ERROR: <function ChirpBankEdit._refresh_memory at 0x7b7ae3fcc8b0> raised unexpected exception
Traceback (most recent call last):
File ".local/lib/python3.10/site-packages/chirp/wxui/common.py", line 642, in run_safe
return fn(*args, **kwargs)
File ".local/lib/python3.10/site-packages/chirp/wxui/bankedit.py", line 276, in _refresh_memory
for bank in self._bankmodel.get_memory_mappings(mem)]
File ".local/lib/python3.10/site-packages/chirp/chirp_common.py", line 794, in get_memory_mappings
return [self._banks[(memory.number - lo) // count]]
IndexError: list index out of range
As was suggested elsewhere, as this radio does probably not have banks, a workaround can be applied to use has_bank = False
which I will do later today, but this is just a mitigation, the bug is probably caused by something else in the bank code.