Commit cedf36c2 authored by Jérome Perrin's avatar Jérome Perrin

handle pydot unavailability at a later point

parent 318825d6
......@@ -22,10 +22,6 @@ import argparse
import json
import traceback
import multiprocessing
try:
import pydot
except ImportError:
print "Warning, pydot could not be found"
import os.path
import logging
......@@ -59,6 +55,11 @@ def postJSONFile():
def positionGraph():
"""Uses graphviz to position nodes of the graph.
"""
try:
import pydot
except ImportError:
return jsonify({})
graph = pydot.Dot()
for node_id, node in request.json['nodes'].iteritems():
......
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