#9640 Be a little more tolerant with empty lines
Merged 4 months ago by humaton. Opened 4 months 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

4 months ago

Pull-Request has been merged by humaton

4 months ago
Metadata