X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=daklib%2Fdbconn.py;h=4e01b610ce1789acffd9272d8559c34f86542795;hb=27e00376e81d1c37ff327ee0d39670b266418869;hp=637301871a6bf4495036d8a004d7d3d8086f7fa2;hpb=0156b10c74c121497951899f37401535055e2e14;p=dak.git diff --git a/daklib/dbconn.py b/daklib/dbconn.py index 63730187..4e01b610 100755 --- a/daklib/dbconn.py +++ b/daklib/dbconn.py @@ -818,7 +818,7 @@ class BuildQueue(object): Logger.log(["I: Removing %s from the queue" % o.fullpath]) os.unlink(o.fullpath) killdb = True - except OSError, e: + except OSError as e: # If it wasn't there, don't worry if e.errno == ENOENT: killdb = True @@ -3684,7 +3684,7 @@ class DBConn(object): self.__setuptables() self.__setupmappers() - except OperationalError, e: + except OperationalError as e: import utils utils.fubar("Cannot connect to database (%s)" % str(e))