Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

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

```

(2 edits)

that was from a save from patch 15.X correct?  You got your save file so I can trace it? This little bugger has been elusive. New game wont do that but I need to get that fixed. the email error is from an old email you received I think.

(1 edit)

It's a 15.4 save. Where do you want me to send it? 

First, where are the save games? I don't see a ReclusiveBay folder in %AppData%/Renpy.

(1 edit)

here is fine. and try to rollback and reload the game to see if the auto updater fixes the issue ok? Thank you for helping me as well ^_^ Let me know if the rollback adn reload works :D

(1 edit)

Neither rollback nor reload fixes the issue. Rollback brings you to the computer screen, so you aren't forced to restart the game. But the error persists if you click on email again.

I see how to add a video or image, but not a file.

Alright np. Just upload your save file here so we can trace it back, the uplaoder isn't updating the email to newest version 

Ah, itch.io doesn't allow it. Go to this site where I also have the game and post it there for me? https://f95zone.to/threads/reclusive-bay-v0-16-sacred-sage.81113/page-8

Posted, hopefully you can see it as I don't have three posts yet on f95.

Thank you friend. Thanks to you we found the rror and fixed it. ^_^ this email thing shoulkd happen again now :D 

Awesome! Glad to be of help.

The save file is located game / save in the reclusive Bay folder (not in the AppData)