Ensure the psycopg2 exception is imported.
Ensure the psycopg2 exception is imported.

Change-Id: Ibd2a857fa4bc13ea06dfcd91989e8b5133e26fa3

OSSystems/lava-server,OSSystems/lava-server,OSSystems/lava-server,Linaro/lava-server,Linaro/lava-server,Linaro/lava-server,Linaro/lava-server