mirror of https://github.com/eyhc1/rendercv.git
renderer: fix decoding issues (#29)
This commit is contained in:
parent
990d5108a2
commit
d24d33e208
|
@ -956,7 +956,11 @@ def latex_to_pdf(
|
||||||
"If you can't solve the problem, please open an issue on GitHub.",
|
"If you can't solve the problem, please open an issue on GitHub.",
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
output = output[0].decode("utf-8")
|
try:
|
||||||
|
output = output[0].decode("utf-8")
|
||||||
|
except UnicodeDecodeError:
|
||||||
|
output = output[0].decode("latin-1")
|
||||||
|
|
||||||
if "Rerun to get" in output:
|
if "Rerun to get" in output:
|
||||||
# Run TinyTeX again to get the references right:
|
# Run TinyTeX again to get the references right:
|
||||||
subprocess.run(
|
subprocess.run(
|
||||||
|
|
Loading…
Reference in New Issue