diff --git a/OscCommentMacroListener.py b/OscCommentMacroListener.py index 723c8f7..5940676 100644 --- a/OscCommentMacroListener.py +++ b/OscCommentMacroListener.py @@ -163,7 +163,7 @@ class OscCommentMacroListener(CommentMacroListener): self.osc.button_press(ctx.device(), "/hog/hardware/assert") def exitMasterRelease(self, ctx: CommentMacroParser.MasterReleaseContext): - if ctx.target()is None: + if ctx.target() is not None: logger.error("ERROR: limited to releasing current master only.") return logger.info("RELEASE on current master.")