From: Joerg Jaspert Date: Sun, 20 Feb 2011 10:13:06 +0000 (+0100) Subject: fixup code X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8cb1abe7c2f08bc22fd3ddfcfce55e6183cd297e;p=dak fixup code Signed-off-by: Joerg Jaspert --- diff --git a/dak/graph.py b/dak/graph.py index b900b3ea..d6c290e4 100755 --- a/dak/graph.py +++ b/dak/graph.py @@ -98,7 +98,7 @@ GPRINT:avgds0:avg\\: %%.0lf\\j rrd_args += extra_args try: ret = rrdtool.graph(*rrd_args) - except rrdtool.error as e: + except rrdtool.error, e: print('warning: graph: rrdtool error, skipping %s-%s.png: %s' % (name, graph, e)) ################################################################################ diff --git a/dak/queue_report.py b/dak/queue_report.py index 2f92bcf6..1f688919 100755 --- a/dak/queue_report.py +++ b/dak/queue_report.py @@ -353,7 +353,7 @@ RRA:MAX:0.5:288:795 try: rc = rrdtool.create(*create) ru = rrdtool.update(*update) - except rrdtool.error as e: + except rrdtool.error, e: print('warning: queue_report: rrdtool error, skipping %s.rrd: %s' % (type, e)) except NameError: pass