From aa71587aea14cf571a0d179f36674f57b2ca9c32 Mon Sep 17 00:00:00 2001 From: augustin64 Date: Sun, 1 Dec 2024 17:37:24 +0100 Subject: [PATCH] Strip --- utils/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/cli.py b/utils/cli.py index 4eee35f..91b3e6e 100755 --- a/utils/cli.py +++ b/utils/cli.py @@ -17,7 +17,7 @@ from bs4 import BeautifulSoup home = str(Path.home()) with open(os.path.join(home, ".aoc-cookie"), "r", encoding='utf8') as file: - cookie = file.read() + cookie = file.read().replace("\n", " ").strip() session = requests.Session() session.cookies["session"] = cookie