diff --git a/contrib/pyln-proto/pyln/proto/bech32.py b/contrib/pyln-proto/pyln/proto/bech32.py index 536770d73..c821ec358 100644 --- a/contrib/pyln-proto/pyln/proto/bech32.py +++ b/contrib/pyln-proto/pyln/proto/bech32.py @@ -117,5 +117,5 @@ def decode(hrp, addr): def encode(hrp, witver, witprog): """Encode a segwit address.""" ret = bech32_encode(hrp, [witver] + convertbits(witprog, 8, 5)) - assert decode(hrp, ret) is not (None, None) + assert decode(hrp, ret) != (None, None) return ret