silence warning "E999 SyntaxError: invalid syntax"

上级 0bf4c90e
...@@ -78,6 +78,6 @@ $function$""") ...@@ -78,6 +78,6 @@ $function$""")
c.execute("UPDATE config SET value = '69' WHERE name = 'db_revision'") c.execute("UPDATE config SET value = '69' WHERE name = 'db_revision'")
self.db.commit() self.db.commit()
except psycopg2.ProgrammingError, msg: except psycopg2.ProgrammingError as msg:
self.db.rollback() self.db.rollback()
raise DBUpdateError('Unable to apply sick update 69, rollback issued. Error message : %s' % (str(msg))) raise DBUpdateError('Unable to apply sick update 69, rollback issued. Error message : %s' % (str(msg)))
...@@ -22,7 +22,6 @@ ignore = ...@@ -22,7 +22,6 @@ ignore =
E722, E722,
E731, E731,
E741, E741,
E999,
F401, F401,
F403, F403,
F405, F405,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册