def get_error_message(error):
    try:
        return error.args[0]
    except IndexError:
        return ''
Convert a nested dictionary into a flat dictionary representation
dataset/ETHPy150Open CenterForOpenScience/osf.io/framework/transactions/utils.py/get_error_message--crossover with--dataset/ETHPy150Open lsbardel/python-stdnet/stdnet/utils/jsontools.py/dict_flat_generator