Skip to content

Latest commit

 

History

History
 
 

exception

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 

例外(exception)

try:
   cur.execute("SELECT * FROM barf")
except psycopg2.Error as e:
	 print(e.pgcode) #'42P01'
	 print(e.pgerror) # ERROR:  relation "barf" does not exist
LINE 1: SELECT * FROM barf