From cc8ce32c61b30df6d8ee5f3563218fb8ddf76d0c Mon Sep 17 00:00:00 2001 From: Fabian Dill Date: Sat, 27 Aug 2022 09:21:47 +0200 Subject: [PATCH] Options: fix corner case where Toggle.value and Toggle.__int__ would be bool Which lead to a connect failure in Raft --- Options.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Options.py b/Options.py index a4f559a5..7eb108c9 100644 --- a/Options.py +++ b/Options.py @@ -298,7 +298,7 @@ class Toggle(NumericOption): if type(data) == str: return cls.from_text(data) else: - return cls(data) + return cls(int(data)) @classmethod def get_option_name(cls, value):