silence warning "E999 SyntaxError: invalid syntax"

上级 0bf4c90e
......@@ -78,6 +78,6 @@ $function$""")
c.execute("UPDATE config SET value = '69' 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 69, rollback issued. Error message : %s' % (str(msg)))
......@@ -22,7 +22,6 @@ ignore =
E722,
E731,
E741,
E999,
F401,
F403,
F405,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册