mirror of
https://github.com/NinjaCheetah/libWiiPy.git
synced 2025-04-26 13:21:01 -04:00
Small edit to return error.
This commit is contained in:
parent
b241124240
commit
f9b5e7aa16
@ -198,5 +198,5 @@ class TMD:
|
|||||||
if record < self.num_contents:
|
if record < self.num_contents:
|
||||||
return self.content_records[record]
|
return self.content_records[record]
|
||||||
else:
|
else:
|
||||||
raise IndexError("Invalid content record! TMD lists '" + str(self.num_contents) +
|
raise IndexError("Invalid content record! TMD lists '" + str(self.num_contents - 1) +
|
||||||
"' contents but index was '" + str(record) + "'!")
|
"' contents but index was '" + str(record) + "'!")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user