Wrong error message

In this forum we discuss the future of Ren'Py, both bug fixes and longer-term development. Pre-releases are announced and discussed here.
Post Reply
Message
Author
User avatar
thelastsecret
Regular
Posts: 117
Joined: Tue Mar 01, 2022 1:32 pm
Completed: The Last Secret
Projects: Sweet Science – The Girls from Silversee Castle
itch: thelastsecret
Discord: TheLastSecret #5266
Contact:

Wrong error message

#1 Post by thelastsecret »

I found a strange bug:
I accidentally wrote in one screen of my program:

Code: Select all

                text _("Test"):
                    align 0.5
instead of

Code: Select all

                text _("Test"):
                    xalign 0.5
I got a rather obscure error message:
TypeError: 'float' object has no attribute '__getitem__'
I could live with that, but Ren'py claimed that error to be in a different screen!
Both screens are called from the same subroutine, first the one with the error above, then the one where Ren'py claimed the error to be. The error occurred before the program came even close to calling the second screen and interrupted the program there. I only figured that out by adding manual breakpoints into the subroutine. (The bug search therefore took a long time. In my despair, I actually completely reprogrammed the second routine. Wasn't needed after all. :lol: )
I don't know whether this can be fixed, but I just wanted to report it - and even if only to help others who encounter this problem.

Post Reply

Who is online

Users browsing this forum: No registered users