diff --git a/flaskr/controllers/main_controller.py b/flaskr/controllers/main_controller.py index 4670d48..cb0da6f 100644 --- a/flaskr/controllers/main_controller.py +++ b/flaskr/controllers/main_controller.py @@ -131,6 +131,9 @@ def gather_addresses(from_list, from_file): else: addresses = from_list.replace("\r", '').split("\n") + # Remove empty lines (if any) + addresses = [a for a in addresses if a] + return "\n".join(addresses) -- libgit2 0.21.2