Awesome! This is very good news. Thank you for continuing to improve your framework!
I also encounter a problem when sorting by unread ( key=attrgetter('locked') ). This happens for a global encyclopedia with persistent data when I have read and unread data at the same time and click on the filter unread button.
If all entries in the encyclopedia are read or unread (new), then the error does not occur.
I see that this is close to the previous problem, which arises due to the data type. Will this also be fixed in the next version?
Code: Select all
I'm sorry, but an uncaught exception occurred.
While running game code:
TypeError: '<' not supported between instances of 'bool' and 'NoneType'
-- Full Traceback ------------------------------------------------------------
Full traceback:
File "renpy/common/_layout/screen_main_menu.rpym", line 28, in script
python hide:
File "C:\Users\Kostpomin\renpy-8.1.1-sdk\renpy\ast.py", line 1138, in execute
renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
File "C:\Users\Kostpomin\renpy-8.1.1-sdk\renpy\python.py", line 1122, in py_exec_bytecode
exec(bytecode, globals, locals)
File "renpy/common/_layout/screen_main_menu.rpym", line 28, in <module>
python hide:
File "renpy/common/_layout/screen_main_menu.rpym", line 35, in _execute_python_hide
ui.interact()
File "C:\Users\Kostpomin\renpy-8.1.1-sdk\renpy\ui.py", line 299, in interact
rv = renpy.game.interface.interact(roll_forward=roll_forward, **kwargs)
File "C:\Users\Kostpomin\renpy-8.1.1-sdk\renpy\display\core.py", line 3582, in interact
repeat, rv = self.interact_core(preloads=preloads, trans_pause=trans_pause, pause=pause, pause_start=pause_start, pause_modal=pause_modal, **kwargs) # type: ignore
File "C:\Users\Kostpomin\renpy-8.1.1-sdk\renpy\display\core.py", line 4543, in interact_core
rv = root_widget.event(ev, x, y, 0)
File "C:\Users\Kostpomin\renpy-8.1.1-sdk\renpy\display\layout.py", line 1179, in event
rv = i.event(ev, x - xo, y - yo, cst)
File "C:\Users\Kostpomin\renpy-8.1.1-sdk\renpy\display\transition.py", line 53, in event
return self.new_widget.event(ev, x, y, st) # E1101
File "C:\Users\Kostpomin\renpy-8.1.1-sdk\renpy\display\layout.py", line 1179, in event
rv = i.event(ev, x - xo, y - yo, cst)
File "C:\Users\Kostpomin\renpy-8.1.1-sdk\renpy\display\layout.py", line 1179, in event
rv = i.event(ev, x - xo, y - yo, cst)
File "C:\Users\Kostpomin\renpy-8.1.1-sdk\renpy\display\screen.py", line 770, in event
rv = self.child.event(ev, x, y, st)
File "C:\Users\Kostpomin\renpy-8.1.1-sdk\renpy\display\layout.py", line 1179, in event
rv = i.event(ev, x - xo, y - yo, cst)
File "C:\Users\Kostpomin\renpy-8.1.1-sdk\renpy\display\layout.py", line 1403, in event
rv = super(Window, self).event(ev, x, y, st)
File "C:\Users\Kostpomin\renpy-8.1.1-sdk\renpy\display\layout.py", line 281, in event
rv = d.event(ev, x - xo, y - yo, st)
File "C:\Users\Kostpomin\renpy-8.1.1-sdk\renpy\display\layout.py", line 1179, in event
rv = i.event(ev, x - xo, y - yo, cst)
File "C:\Users\Kostpomin\renpy-8.1.1-sdk\renpy\display\layout.py", line 1403, in event
rv = super(Window, self).event(ev, x, y, st)
File "C:\Users\Kostpomin\renpy-8.1.1-sdk\renpy\display\layout.py", line 281, in event
rv = d.event(ev, x - xo, y - yo, st)
File "C:\Users\Kostpomin\renpy-8.1.1-sdk\renpy\display\layout.py", line 1179, in event
rv = i.event(ev, x - xo, y - yo, cst)
File "C:\Users\Kostpomin\renpy-8.1.1-sdk\renpy\display\layout.py", line 1179, in event
rv = i.event(ev, x - xo, y - yo, cst)
File "C:\Users\Kostpomin\renpy-8.1.1-sdk\renpy\display\layout.py", line 1179, in event
rv = i.event(ev, x - xo, y - yo, cst)
File "C:\Users\Kostpomin\renpy-8.1.1-sdk\renpy\display\behavior.py", line 1142, in event
return handle_click(self.clicked)
File "C:\Users\Kostpomin\renpy-8.1.1-sdk\renpy\display\behavior.py", line 1075, in handle_click
rv = run(action)
File "C:\Users\Kostpomin\renpy-8.1.1-sdk\renpy\display\behavior.py", line 379, in run
return action(*args, **kwargs)
File "game/encyclopaedia/actions_ren.py", line 242, in __call__
self.enc.sort_entries(
File "game/encyclopaedia/encyclopaedia_ren.py", line 199, in sort_entries
entries.sort(key=attrgetter('viewed'))
File "C:\Users\Kostpomin\renpy-8.1.1-sdk\renpy\revertable.py", line 97, in do_mutation
return method(self, *args, **kwargs)
TypeError: '<' not supported between instances of 'bool' and 'NoneType'
Windows-10-10.0.19045 AMD64
Ren'Py 8.1.3.23091805