---------------------------------------------------------------------------
KeyError Traceback (most recent call last)
c:\users\kate\appdata\local\programs\python\python35-32\lib\site-packages\pg8000\core.py in execute(self, cursor, operation, vals)
1890 try:
-> 1891 ps = cache['ps'][key]
1892 cursor.ps = ps
KeyError: ('SELECT * FROM winequality', ())
During handling of the above exception, another exception occurred:
ProgrammingError Traceback (most recent call last)
<ipython-input-16-784de8fa3a0c> in <module>()
----> 1 cursor.execute('SELECT * FROM winequality')
c:\users\kate\appdata\local\programs\python\python35-32\lib\site-packages\pg8000\core.py in execute(self, operation, args, stream)
904 if not self._c.in_transaction and not self._c.autocommit:
905 self._c.execute(self, "begin transaction", None)
--> 906 self._c.execute(self, operation, args)
907 except AttributeError as e:
908 if self._c is None:
c:\users\kate\appdata\local\programs\python\python35-32\lib\site-packages\pg8000\core.py in execute(self, cursor, operation, vals)
1938 raise OperationalError(str(e))
1939
-> 1940 self.handle_messages(cursor)
1941
1942 # We've got row_desc that allows us to identify what we're
c:\users\kate\appdata\local\programs\python\python35-32\lib\site-packages\pg8000\core.py in handle_messages(self, cursor)
2086
2087 if self.error is not None:
-> 2088 raise self.error
2089
2090 # Byte1('C') - Identifies the message as a close command.
ProgrammingError: ('ERROR', '25P02', 'current transaction is aborted, commands ignored until end of transaction block', 'postgres.c', '1283', 'exec_parse_message', '', '')