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

rebased onto 98eafd1

11 months ago

Pull-Request has been merged by humaton

11 months ago
Metadata