Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

handle UnicodeDecodeError #491

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

handle UnicodeDecodeError #491

wants to merge 1 commit into from

Conversation

movy
Copy link
Contributor

@movy movy commented Dec 29, 2024

Today out of the blue all my instances failed to restart with the following error:

      '  File "/home/ubuntu/jesse-bot/lib/python3.11/site-packages/jesse/services/cache.py", line 95, in <module>\n' +
      '    cache = Cache("storage/temp/")\n' +
      '            ^^^^^^^^^^^^^^^^^^^^^^\n' +
      '  File "/home/ubuntu/jesse-bot/lib/python3.11/site-packages/jesse/services/cache.py", line 23, in __init__\n' +
      '    self.db = pickle.load(f)\n' +
      '              ^^^^^^^^^^^^^^\n' +
      "UnicodeDecodeError: 'utf-8' codec can't decode byte 0x95 in position 67: invalid start byte\n" +
      '\n' +

Adding UnicodeDecodeError to handled exceptions helped.

Today out of the blue all my instances failed to restart with the following error:

```python
      '  File "/home/ubuntu/jesse-bot/lib/python3.11/site-packages/jesse/services/cache.py", line 95, in <module>\n' +
      '    cache = Cache("storage/temp/")\n' +
      '            ^^^^^^^^^^^^^^^^^^^^^^\n' +
      '  File "/home/ubuntu/jesse-bot/lib/python3.11/site-packages/jesse/services/cache.py", line 23, in __init__\n' +
      '    self.db = pickle.load(f)\n' +
      '              ^^^^^^^^^^^^^^\n' +
      "UnicodeDecodeError: 'utf-8' codec can't decode byte 0x95 in position 67: invalid start byte\n" +
      '\n' +
```

Adding `UnicodeDecodeError` to handled exceptions helped.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant