def authenticated(function):
def wrapped(session, *args, **kwargs):<EOL><INDENT>"""<STR_LIT>"""<EOL>try:<EOL><INDENT>return function(session, *args, **kwargs)<EOL><DEDENT>except VooblyError:<EOL><INDENT>with session.cache_disabled():<EOL><INDENT>_LOGGER.info("<STR_LIT>")<EOL>login(session)<EOL>return function(session, *args, **kwargs)<EOL><DEDENT><DEDENT><DEDENT>return wrapped<EOL>
Re-authenticate if session expired.