X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fdakdb%2Fupdate1.py;h=21942765e560b056d167d3755e409fe73d5343c0;hb=dd80b169287a128cd9e3b833852fbf68106385b5;hp=92fc44983cac2ea396f6698c4200770d3d7820e8;hpb=6a4cddfbe864e563e671fe5dabf5600c4783af5c;p=dak.git diff --git a/dak/dakdb/update1.py b/dak/dakdb/update1.py index 92fc4498..21942765 100755 --- a/dak/dakdb/update1.py +++ b/dak/dakdb/update1.py @@ -1,7 +1,12 @@ #!/usr/bin/env python -""" Database Update Script - Saner DM db schema """ -# Copyright (C) 2008 Michael Casadevall +""" +Saner DM db schema + +@contact: Debian FTP Master +@copyright: 2008 Michael Casadevall +@license: GNU General Public License version 2 or later +""" # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -59,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)))