Commit fc7c244b authored by Sean Leavey's avatar Sean Leavey

Throw exception when graphviz is not installed

parent cc3ab62e
......@@ -4,8 +4,13 @@ Based on node_graph project by Sebastian Steinlechner:
import tempfile
from graphviz import Digraph
from ...components import laser, space
from ...exceptions import BasePyKatException
from graphviz import Digraph
except ImportError:
raise BasePyKatException("The 'graphviz' Python library is required to generate node graphs.")
class NodeGraph(object):
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment