From 98eafd14fd5e215b8a9f15d9056ed616c510f87e Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Jul 31 2020 08:29:29 +0000 Subject: Be a little more tolerant with empty lines Signed-off-by: Pierre-Yves Chibon --- diff --git a/scripts/distgit/retire_packagers.py b/scripts/distgit/retire_packagers.py index a0afaf5..564e637 100644 --- a/scripts/distgit/retire_packagers.py +++ b/scripts/distgit/retire_packagers.py @@ -296,7 +296,9 @@ def main(args): _log.info("No such file found: %s", args.users_file) try: with open(args.users_file) as stream: - usernames = [l.strip() for l in stream.readlines()] + usernames = [ + l.strip() for l in stream.readlines() if l.strip() + ] except Exception as err: _log.debug( "Failed to load/read the file: %s, error is: %s", args.users_file, err