Set global feedback in case of error

def set_global_feedback(feedback, append=False):
    """ Set global feedback in case of error """
    rdict = load_feedback()
    rdict['text'] = rdict.get('text', '') + feedback if append else feedback
    save_feedback(rdict)