mirror of
https://github.com/kk7ds/chirp.git
synced 2024-09-21 10:37:15 +00:00
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:
parent
924dcaed49
commit
c4637cdb6a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user