X-Git-Url: https://git.ctpug.org.za/?a=blobdiff_plain;f=naja%2Factions.py;h=5aa465a4c3122889e801871211432323a0cbaf71;hb=ed4a0f563fc0f8dbbda9c4ad2ef6dbde9d525abd;hp=2407d829b59155b4077d7f56e5d4e171c9bfb646;hpb=d93cb8cf618c2f77c4a2fe278b41708a5c5556dd;p=naja.git diff --git a/naja/actions.py b/naja/actions.py index 2407d82..5aa465a 100644 --- a/naja/actions.py +++ b/naja/actions.py @@ -130,6 +130,8 @@ class GenericBits(LocationAction): bits.clear_bits(self.clear_bits) def get_text(self, location=None): + if 'message' in self.data: + return super(GenericBits, self).get_text() parts = [] for template, bits in [ ('Set %s.', self.set_bits), ('Clear %s.', self.clear_bits),