Fix export when cairosvg module is not found

If not found, the program should not try to export the image using it
anyway.
master
Niels Giorno 2020-08-28 12:52:53 +02:00
parent deb2e031a1
commit 01f90de9c2
1 changed files with 13 additions and 12 deletions

View File

@ -114,6 +114,7 @@ def generate_outfile(
)
log.debug(e)
else:
svg_str = jj2_tpl.render(context)
if outfilename.suffix == ".png":