You are viewing a single comment's thread from:

RE: @dailyupvotes Python quick-sender

in #python8 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.04
TRX 0.32
JST 0.081
BTC 63011.78
ETH 1700.22
USDT 1.00
SBD 0.42