async def set_autoconnect_mode(mode):
jar = aiohttp.CookieJar(unsafe=True)<EOL>websession = aiohttp.ClientSession(cookie_jar=jar)<EOL>try:<EOL><INDENT>modem = eternalegypt.Modem(hostname=sys.argv[<NUM_LIT:1>], websession=websession)<EOL>await modem.login(password=sys.argv[<NUM_LIT:2>])<EOL>await modem.set_autoconnect_mode(mode)<EOL>await modem.logout()<EOL><DEDENT>except eternalegypt.Error:<EOL><INDENT>print("<STR_LIT>")<EOL><DEDENT>await websession.close()<EOL>
Example of printing the current upstream.