Skip to content

Commit

Permalink
fix a couple more python 2-to-3 issues
Browse files Browse the repository at this point in the history
  • Loading branch information
mwestphall committed Jun 8, 2023
1 parent ce21a5b commit 016542f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/update-all-remote-wn-clients
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ def main():
)
opts, _ = parser.parse_args()

cfg = configparser.SafeConfigParser()
cfg = configparser.ConfigParser()
cfg.read(opts.config)

sections_list = list(x for x in cfg.sections() if x.startswith("Endpoint"))
Expand Down
2 changes: 1 addition & 1 deletion scripts/update-remote-wn-client
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def update_crls(cert_dir):
proc = Popen(command, stdout=PIPE, stderr=STDOUT)
output, _ = proc.communicate()
if proc.returncode != 0:
if output and ("CRL verification failed" in output or "Download error" in output):
if output and (b"CRL verification failed" in output or b"Download error" in output):
# These errors aren't actually fatal; we'll send a less alarming
# notification about them.
log.info(output)
Expand Down

0 comments on commit 016542f

Please sign in to comment.