From 1d0442af7a61b359861a1efa95030b5e0e7f63bc Mon Sep 17 00:00:00 2001 From: Stefan Blumentrath Date: Wed, 23 Aug 2023 13:50:36 +0200 Subject: [PATCH] Update i.asf.download.py --- src/imagery/i.asf.download/i.asf.download.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/imagery/i.asf.download/i.asf.download.py b/src/imagery/i.asf.download/i.asf.download.py index 1e607195..c0d2bedc 100644 --- a/src/imagery/i.asf.download/i.asf.download.py +++ b/src/imagery/i.asf.download/i.asf.download.py @@ -178,7 +178,7 @@ def get_asf_token(token_file=None): if os.path.exists(token_file): try: with open(token_file, "r", encoding="UTF8") as asf_token_file: - asf_token = asf_token_file.read() + asf_token = asf_token_file.read().rstrip() except OSError as error: raise error if not asf_token: