X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fdakdb%2Fupdate1.py;h=21942765e560b056d167d3755e409fe73d5343c0;hb=e2c4fd7f21c3b33cd7192bded5d6373e0ee90374;hp=0c83377387431f69dd4c615a96f4aef9cccf0a7d;hpb=f0bfd37e7286156598d79b53501ebe2000bb7924;p=dak.git diff --git a/dak/dakdb/update1.py b/dak/dakdb/update1.py index 0c833773..21942765 100755 --- a/dak/dakdb/update1.py +++ b/dak/dakdb/update1.py @@ -64,6 +64,6 @@ def do_update(self): print "Pausing for five seconds ..." time.sleep (5) - except psycopg2.ProgrammingError, msg: + except psycopg2.ProgrammingError as msg: self.db.rollback() - raise DBUpdateError, "Unable to appy DM table updates, rollback issued. Error message : %s" % (str(msg)) + raise DBUpdateError("Unable to appy DM table updates, rollback issued. Error message : %s" % (str(msg)))