In [1]:
import spot.aux

Make sure str_to_svg reports errors from dot.


In [3]:
spot.aux.str_to_svg(b'syntax error')


Calling 'dot' for the conversion to SVG produced the message:
Error: <stdin>: syntax error in line 1 near 'syntax'

---------------------------------------------------------------------------
CalledProcessError                        Traceback (most recent call last)
<ipython-input-3-294a2c217b9a> in <module>()
----> 1 spot.aux.str_to_svg(b'syntax error')

/home/adl/git/spot/python/spot/aux.py in str_to_svg(str)
     60     ret = dot.wait()
     61     if ret:
---> 62         raise subprocess.CalledProcessError(ret, 'dot')
     63     return stdout.decode('utf-8')
     64 

CalledProcessError: Command 'dot' returned non-zero exit status 1

In [ ]: