Skip to content

Commit 04771fa

Browse files
authored
Core: fix pickling plando texts (#4711)
1 parent 2639796 commit 04771fa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Utils.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,8 @@ def find_class(self, module: str, name: str) -> type:
443443
else:
444444
mod = importlib.import_module(module)
445445
obj = getattr(mod, name)
446-
if issubclass(obj, (self.options_module.Option, self.options_module.PlandoConnection)):
446+
if issubclass(obj, (self.options_module.Option, self.options_module.PlandoConnection,
447+
self.options_module.PlandoText)):
447448
return obj
448449
# Forbid everything else.
449450
raise pickle.UnpicklingError(f"global '{module}.{name}' is forbidden")

0 commit comments

Comments
 (0)