--> -->
 
 
CardinalityViolation
Python 3.9.2: /usr/bin/python3
Tue Mar 19 07:40:33 2024

A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.

 /srv/udd.debian.org/udd/web/cgi-bin/wnpp_packaged.cgi in <module>
     64 conn = connect(DATABASE)
     65 cur = conn.cursor()
=>   66 cur.execute(query)
     67 rows = cur.fetchall()
     68 cur.close()
cur = <cursor object at 0x7fc511b48c70; closed: 0>, cur.execute = <built-in method execute of psycopg2.extensions.cursor object>, query = 'WITH qabugs AS (\n SELECT substring(t... FROM upload_history)\n ORDER BY id'

CardinalityViolation: more than one row returned by a subquery used as an expression
      args = ('more than one row returned by a subquery used as an expression\n',)
      cursor = <cursor object at 0x7fc511b48c70; closed: 0>
      diag = <psycopg2.extensions.Diagnostics object>
      pgcode = '21000'
      pgerror = 'ERROR: more than one row returned by a subquery used as an expression\n'
      with_traceback = <built-in method with_traceback of CardinalityViolation object>