From 8d6ade6377b20ac59d9f8433a6c52762de23af15 Mon Sep 17 00:00:00 2001 From: "rukayaj@gmail.com" Date: Fri, 17 May 2024 13:35:30 +0100 Subject: [PATCH] Fix newline bug --- app/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/main.py b/app/main.py index fe14d34..4c8b836 100644 --- a/app/main.py +++ b/app/main.py @@ -45,7 +45,7 @@ def download_file(url): return response.content.decode('utf-8') def validate_file_content(file_content): - url_list = file_content.split('\n') + url_list = file_content.strip().split('\n') errors = [] if len(url_list) == 0: errors.append("Empty file. There should be at least 1 line in the file.")