Kicks this error when trying to open email.
```
I'm sorry, but an uncaught exception occurred.
While running game code:
File "game/MC_PC.rpy", line 1190, in script
call screen email_app_window
File "renpy/common/000statements.rpy", line 569, in execute_call_screen
store._return = renpy.call_screen(name, *args, **kwargs)
File "game/MC_PC.rpy", line 1216, in execute
screen email_app_window():
File "game/MC_PC.rpy", line 1216, in execute
screen email_app_window():
File "game/MC_PC.rpy", line 1248, in execute
viewport:
File "game/MC_PC.rpy", line 1255, in execute
vbox:
File "game/MC_PC.rpy", line 1256, in execute
if len(emails.list) > 0:
File "game/MC_PC.rpy", line 1256, in <module>
if len(emails.list) > 0:
File "game/classes/Emails.rpy", line 63, in list
sorted_emails = sorted(active_emails, key = lambda email: (email.date.year, email.date.month, email.date.day, email.time, email.char, email.progress), reverse = True)
File "game/classes/Emails.rpy", line 63, in <lambda>
sorted_emails = sorted(active_emails, key = lambda email: (email.date.year, email.date.month, email.date.day, email.time, email.char, email.progress), reverse = True)
AttributeError: 'unicode' object has no attribute 'year'
-- Full Traceback ------------------------------------------------------------
Full traceback:
File "game/MC_PC.rpy", line 1190, in script
call screen email_app_window
File "renpy/ast.py", line 2009, in execute
self.call("execute")
File "renpy/ast.py", line 1997, in call
return renpy.statements.call(method, parsed, *args, **kwargs)
File "renpy/statements.py", line 278, in call
return method(parsed, *args, **kwargs)
File "renpy/common/000statements.rpy", line 569, in execute_call_screen
store._return = renpy.call_screen(name, *args, **kwargs)
File "renpy/exports.py", line 3057, in call_screen
rv = renpy.ui.interact(mouse="screen", type="screen", roll_forward=roll_forward)
File "renpy/ui.py", line 298, in interact
rv = renpy.game.interface.interact(roll_forward=roll_forward, **kwargs)
File "renpy/display/core.py", line 3276, in interact
repeat, rv = self.interact_core(preloads=preloads, trans_pause=trans_pause, pause=pause, pause_start=pause_start, **kwargs)
File "renpy/display/core.py", line 3693, in interact_core
root_widget.visit_all(lambda i : i.per_interact())
File "renpy/display/core.py", line 567, in visit_all
d.visit_all(callback, seen)
File "renpy/display/core.py", line 567, in visit_all
d.visit_all(callback, seen)
File "renpy/display/core.py", line 567, in visit_all
d.visit_all(callback, seen)
File "renpy/display/screen.py", line 432, in visit_all
callback(self)
File "renpy/display/core.py", line 3693, in <lambda>
root_widget.visit_all(lambda i : i.per_interact())
File "renpy/display/screen.py", line 443, in per_interact
self.update()
File "renpy/display/screen.py", line 631, in update
self.screen.function(**self.scope)
File "game/MC_PC.rpy", line 1216, in execute
screen email_app_window():
File "game/MC_PC.rpy", line 1216, in execute
screen email_app_window():
File "game/MC_PC.rpy", line 1248, in execute
viewport:
File "game/MC_PC.rpy", line 1255, in execute
vbox:
File "game/MC_PC.rpy", line 1256, in execute
if len(emails.list) > 0:
File "game/MC_PC.rpy", line 1256, in <module>
if len(emails.list) > 0:
File "game/classes/Emails.rpy", line 63, in list
sorted_emails = sorted(active_emails, key = lambda email: (email.date.year, email.date.month, email.date.day, email.time, email.char, email.progress), reverse = True)
File "renpy/python.py", line 1056, in revertable_sorted
return RevertableList(sorted(*args, **kwargs))
File "game/classes/Emails.rpy", line 63, in <lambda>
sorted_emails = sorted(active_emails, key = lambda email: (email.date.year, email.date.month, email.date.day, email.time, email.char, email.progress), reverse = True)
AttributeError: 'unicode' object has no attribute 'year'
Windows-10-10.0.19041
Ren'Py 7.4.6.1693
Reclusive Bay 0.16
Wed Jul 28 10:56:55 2021
```