Fix formatting messages for exceptions

Fixes:
chirp/drivers/ft1d.py:989:16: W0715: Exception arguments suggest string formatting might be intended (raising-format-tuple)
chirp/drivers/ft1d.py:1003:16: W0715: Exception arguments suggest string formatting might be intended (raising-format-tuple)
This commit is contained in:
Daniele Forsi 2024-02-12 19:59:47 +01:00 committed by Dan Smith
parent 924dcaed49
commit c4637cdb6a

View File

@ -986,7 +986,7 @@ class FT1Radio(yaesu_clone.YaesuCloneModeRadio):
num += len(x[1])
# num -= len(x[1])
if array is None:
raise IndexError("Unknown special %s", memref)
raise IndexError("Unknown special %s" % memref)
num += ndx
# num -= ndx
elif memref > self.MAX_MEM_SLOT: # numbered special
@ -1000,7 +1000,7 @@ class FT1Radio(yaesu_clone.YaesuCloneModeRadio):
break
ndx -= len(x[1])
if array is None:
raise IndexError("Unknown memref number %s", memref)
raise IndexError("Unknown memref number %s" % memref)
else:
array = "memory"
ndx = memref - 1