#9640 Be a little more tolerant with empty lines
Merged 3 years ago by humaton. Opened 3 years ago by pingou.
pingou/releng master  into  master

@@ -296,7 +296,9 @@ 

              _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

Signed-off-by: Pierre-Yves Chibon pingou@pingoured.fr

rebased onto 98eafd1

3 years ago

Pull-Request has been merged by humaton

3 years ago
Metadata