Skip to content
Snippets Groups Projects
Commit d30879c4 authored by Prathamesh Joshi's avatar Prathamesh Joshi Committed by Rebecca Ewing
Browse files

gstlal_ll_inspiral_gracedb_min_instruments: python3 bytes string io encoding error

parent 26b9f490
No related branches found
No related tags found
1 merge request!209O4 Online
......@@ -80,7 +80,7 @@ options, filenames = parse_command_line()
if options.min_instruments is not None:
post_data = urllib.parse.urlencode({"gracedb_min_instruments": options.min_instruments})
post_data = urllib.parse.urlencode({"gracedb_min_instruments": options.min_instruments}).encode('utf-8')
else:
post_data = None
......@@ -97,7 +97,7 @@ urls = set("%sgracedb_min_instruments.txt" % url.strip() for filename in filenam
for url in sorted(urls):
print("%s:" % url)
for line in urllib.request.urlopen(url, data = post_data):
OK &= "error" not in line
OK &= "error".encode('utf-8') not in line
print("\t%s" % line.strip())
if not OK:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment