Fix export when cairosvg module is not found
If not found, the program should not try to export the image using it anyway.master
parent
deb2e031a1
commit
01f90de9c2
|
@ -114,6 +114,7 @@ def generate_outfile(
|
||||||
)
|
)
|
||||||
log.debug(e)
|
log.debug(e)
|
||||||
|
|
||||||
|
else:
|
||||||
svg_str = jj2_tpl.render(context)
|
svg_str = jj2_tpl.render(context)
|
||||||
|
|
||||||
if outfilename.suffix == ".png":
|
if outfilename.suffix == ".png":
|
||||||
|
|
Loading…
Reference in New Issue