From 2f82e0b1fce991d6f3ebd7afa813467e69ed33e2 Mon Sep 17 00:00:00 2001 From: onyx-and-iris <75868496+onyx-and-iris@users.noreply.github.com> Date: Thu, 6 Oct 2022 16:50:03 +0100 Subject: [PATCH] fix str format --- vban_cmd/event.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vban_cmd/event.py b/vban_cmd/event.py index 82c9512..a27c40c 100644 --- a/vban_cmd/event.py +++ b/vban_cmd/event.py @@ -24,7 +24,7 @@ class Event: @pdirty.setter def pdirty(self, val: bool): self.subs["pdirty"] = val - self.info(f"pdirty {'added to' if val else {'removed from'}}") + self.info(f"pdirty {'added to' if val else 'removed from'}") @property def ldirty(self) -> bool: @@ -33,7 +33,7 @@ class Event: @ldirty.setter def ldirty(self, val: bool): self.subs["ldirty"] = val - self.info(f"ldirty {'added to' if val else {'removed from'}}") + self.info(f"ldirty {'added to' if val else 'removed from'}") def get(self) -> list: return [k for k, v in self.subs.items() if v]