def fixup_msg(lvl, msg):
    """
    Fixup for this ERROR to a WARNING because it has a reasonable fallback.
    WARNING:ROOT.TGClient.TGClient] can't open display "localhost:10.0", switching to batch mode...
    In case you run from a remote ssh session, reconnect with ssh -Y
    """
    if "switching to batch mode..." in msg and lvl == logging.ERROR:
        return logging.WARNING, msg
    return lvl, msg
Fixup for this ERROR to a WARNING because it has a reasonable fallback.
    WARNING:ROOT.TGClient.TGClient] can't open display "localhost:10.0", switching to batch mode...
    In case you run from a remote ssh session, reconnect with ssh -Y