diff options
| author | 2020-05-25 10:34:52 +0100 | |
|---|---|---|
| committer | 2020-05-25 10:34:52 +0100 | |
| commit | bb30d2904b4a3273d4b10dc9548c542d65f0c379 (patch) | |
| tree | e6bf89e968dd39a153227aa8ca060496d2c3cbec /bot/exts/valentines/lovecalculator.py | |
| parent | Merge pull request #401 from fuzzmz/minesweeper-disabled-dm-handling (diff) | |
| parent | Remove accidental extra word from docstring (diff) | |
Merge pull request #413 from jodth07/encoding_bug_fix
Encoding bug fix
Diffstat (limited to 'bot/exts/valentines/lovecalculator.py')
| -rw-r--r-- | bot/exts/valentines/lovecalculator.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/exts/valentines/lovecalculator.py b/bot/exts/valentines/lovecalculator.py index e11e062b..c75ea6cf 100644 --- a/bot/exts/valentines/lovecalculator.py +++ b/bot/exts/valentines/lovecalculator.py @@ -15,7 +15,7 @@ from bot.constants import Roles log = logging.getLogger(__name__) -with Path("bot/resources/valentines/love_matches.json").open() as file: +with Path("bot/resources/valentines/love_matches.json").open(encoding="utf8") as file: LOVE_DATA = json.load(file) LOVE_DATA = sorted((int(key), value) for key, value in LOVE_DATA.items()) |