Esempio n. 1
0
def _adm_open_account(author: Union[AccountId, str], account: Union[AccountId,
                                                                    str],
                      rest: str, server: Server) -> Union[str, tuple]:
    try:
        commands.open_account(author, account, server)
    except commands.ValueCommandException:
        return "Looks like they already have an account\nNo need to open a new one"
    return "Account opened successfully"
Esempio n. 2
0
def _open_account(author: Union[AccountId, str], rest: str,
                  server: Server) -> str:
    try:
        commands.open_account(author, author, server)
    except commands.ValueCommandException:
        return ("Looks like you already have an account. "
                "No need to open another one")
    return "Account opened succesfully"