Small edit to return error.

This commit is contained in:
rmc 2024-02-29 23:52:49 -05:00
parent b241124240
commit f9b5e7aa16
No known key found for this signature in database
GPG Key ID: 5633EC10309D77D1

View File

@ -198,5 +198,5 @@ class TMD:
if record < self.num_contents:
return self.content_records[record]
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) + "'!")