[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[dak/master] fixup code



Signed-off-by: Joerg Jaspert <joerg@debian.org>
---
 dak/graph.py        |    2 +-
 dak/queue_report.py |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dak/graph.py b/dak/graph.py
index b900b3e..d6c290e 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 2f92bcf..1f68891 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
-- 
1.5.6.5



Reply to: