Skip to content

Commit dc3180c

Browse files
committed
decode stderr into a more readable error
1 parent 4f730f0 commit dc3180c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

qffbuddy/qffbuddy.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -746,7 +746,9 @@ def open_file(self):
746746
def parse_infile(self, infile):
747747
s = subprocess.run([args.pbqff, "-j", infile], capture_output=True)
748748
if s.returncode != 0:
749-
sys.exit(f"pbqff failed to parse {infile}: {s.stderr}")
749+
sys.exit(
750+
f"pbqff failed to parse {infile}: {s.stderr.decode('utf-8')}"
751+
)
750752
d = json.loads(s.stdout)
751753

752754
geom = d["geometry"]

0 commit comments

Comments
 (0)