From 1cd3a6c54eabd40c1b0b20ee936be85fd10723fb Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 2 Feb 2025 18:14:50 +0530 Subject: [PATCH] Fix regression introduced by commit simplifying set comprehensions --- src/calibre/spell/dictionary.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/spell/dictionary.py b/src/calibre/spell/dictionary.py index 9567aa62ac..09966958e6 100644 --- a/src/calibre/spell/dictionary.py +++ b/src/calibre/spell/dictionary.py @@ -37,7 +37,7 @@ class UserDictionary: def __init__(self, **kwargs): self.name = kwargs['name'] self.is_active = kwargs['is_active'] - self.words = set(kwargs['words']) + self.words = set(map(tuple, kwargs['words'])) def serialize(self): return {'name':self.name, 'is_active': self.is_active, 'words': list(self.words)}