fix: [graph.py] small fix to make it work

pull/292/head
Alexandre Dulaunoy 2018-10-19 14:59:09 +02:00
parent 1276d834dd
commit ca1bc24f65
No known key found for this signature in database
GPG Key ID: 09E2CD4944E6CBCD
1 changed files with 7 additions and 7 deletions

View File

@ -162,7 +162,7 @@ if args.uuid:
dot.append('overlap=scale;')
generated_dot = gen_dot(uuid)
if len(generated_dot) == 0:
print("Empty graph for uuid: {}".format(uuid))
print("Empty graph for uuid: {}".format(uuid))
exit()
print("Generating graph for uuid: {}".format(uuid))
dot += generated_dot
@ -189,7 +189,7 @@ elif args.all:
# dg.source = '\n'.join(dot)
dg = Digraph(format='png', body=dot)
# print(dg.source)
dg.render(engine='dot', filename='graphs/{}'.format(uuid), cleanup=False)
#print(dg.source)
dg.render(filename='graphs/{}'.format(uuid))
else:
exit("No parameters given, use --help for more info.")