Commit 8f489ba8 authored by Andreas Tille's avatar Andreas Tille

Fix dealing with error OperationalError

parent 954e07f0
......@@ -3,7 +3,7 @@
# Generate web page listing screen shots of all packages with a given tag.
# Migrated from http://debian-edu.alioth.debian.org/cgi-bin/edu-debtags.cgi
from psycopg2 import connect
from psycopg2 import connect, OperationalError
from re import split, sub
import optparse
......@@ -27,7 +27,7 @@ SELECT package, tag from debtags
try:
conn = connect("service=udd")
except psycopg2.OperationalError:
except OperationalError:
conn = connect(database='udd', port=5452, host='public-udd-mirror.xvm.mit.edu',
user='public-udd-mirror', password='public-udd-mirror')
cur = conn.cursor()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment