You are viewing a single comment's thread from:

RE: @dailyupvotes Python quick-sender

in #python7 years ago

You might need to validate memos :)

def memo_is_valid(steemd_instance, memo):

    try:
        p = Post(memo, steemd_instance=steemd_instance)
    except ValueError as e:
        if 'Invalid identifier' in e.args[0]:
            return False
        raise
    except steembase.exceptions.PostDoesNotExist:
        return False

    return True
Sort:  

Hey!! that is a real cool addition to the bot! thanks!

Coin Marketplace

STEEM 0.16
TRX 0.24
JST 0.033
BTC 92422.99
ETH 2357.45
SBD 0.63