]> git.decadent.org.uk Git - dak.git/blobdiff - dak/dakdb/update50.py
Convert exception handling to Python3 syntax.
[dak.git] / dak / dakdb / update50.py
index ae7ea4d0337158bba2205f940ea4892da012e20e..568c33bc0dd0bb882412990526a658fc819fb284 100755 (executable)
@@ -42,6 +42,6 @@ def do_update(self):
         c.execute("UPDATE config SET value = '50' WHERE name = 'db_revision'")
         self.db.commit()
 
-    except psycopg2.ProgrammingError, msg:
+    except psycopg2.ProgrammingError as msg:
         self.db.rollback()
         raise DBUpdateError, 'Unable to apply sick update 50, rollback issued. Error message : %s' % (str(msg))