Detected 1 occurrence(s) of ‘\s*pass[word]+\s*[:=]\s*[“‘][a-z0-9\-_\!\$]+[“‘]’: ute(query, vars) for notice in conn.notices: level, message = notice.split(": ") if level == "WARNING": raise psycopg2.Warning(message.strip()) return result conn = psycopg2.connect(user="user", password="secret") cursor = conn.cursor(conn, cursor_factory=ErrorThrowingCursor) psycopg2.Warning: there is already a transaction in progress Source: http://pastebin.com/raw.php?i=811rWyD8
↧