Convert to str if needed.

see #653
This commit is contained in:
Antoine Nguyen
2014-12-13 17:40:33 +01:00
parent 857b634b53
commit f02f162df6
+2
View File
@@ -76,6 +76,8 @@ class Graphic(object):
cmdargs += curve.to_rrd_command_args(rrdfile)
cmd = "rrdtool xport --start %s --end %s " % (str(start), str(end))
cmd += " ".join(cmdargs)
if type(cmd) is unicode:
cmd = cmd.encode("utf-8")
code, output = exec_cmd(cmd)
if code:
return []