Clockwork Market

In-game name:

--> -->





<type 'exceptions.TypeError'> Python 2.7.17: /usr/bin/python

Wed Sep 30 14:48:53 2020

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

/home/tew/introvert.net/temp/sk/sk.cgi in <module>() 422 print

423 #cgi.test()

424 skinf = SKInterface(cgi.FieldStorage())

=> 425 skinf.main()

426

skinf = <__main__.SKInterface instance>, skinf.main = <bound method SKInterface.main of <__main__.SKInterface instance>>

/home/tew/introvert.net/temp/sk/sk.cgi in main(self=<__main__.SKInterface instance>) 398 print self.get_auth()

399

=> 400 print self.item_pulldown()

401 print "<div id='prices'>"

402 if self.item_no:

self = <__main__.SKInterface instance>, self.item_pulldown = <bound method SKInterface.item_pulldown of <__main__.SKInterface instance>>

/home/tew/introvert.net/temp/sk/sk.cgi in item_pulldown(self=<__main__.SKInterface instance>) 141 q = """SELECT id, name from sk_items WHERE type = %s and id <> 0 ORDER BY name ASC"""

142 cur = self.db.cursor()

=> 143 cur.execute(q, i)

144 results = cur.fetchall()

145 s = """<td><form method='post'><select name='item' onchange='this.form.submit();'>"""

cur = <MySQLdb.cursors.Cursor object>, cur.execute = <bound method Cursor.execute of <MySQLdb.cursors.Cursor object>>, q = 'SELECT id, name from sk_items WHERE type = %s and id <> 0 ORDER BY name ASC', i = 0

/usr/lib/python2.7/dist-packages/MySQLdb/cursors.py in execute(self=<MySQLdb.cursors.Cursor object>, query='SELECT id, name from sk_items WHERE type = %s and id <> 0 ORDER BY name ASC', args=0) 232 args = dict((key, db.literal(item)) for key, item in args.items())

233 else:

=> 234 args = tuple(map(db.literal, args))

235 if not PY2 and isinstance(query, (bytes, bytearray)):

236 query = query.decode(db.unicode_literal.charset)

args = 0, builtin tuple = <type 'tuple'>, builtin map = <built-in function map>, db = <_mysql.connection open to 'mysql.introvert.net' at 3147fcd830>, db.literal = <bound method Connection.literal of <_mysql.connection open to 'mysql.introvert.net' at 3147fcd830>>

<type 'exceptions.TypeError'>: argument 2 to map() must support iteration

args = ('argument 2 to map() must support iteration',)

message = 'argument 2 to map() must support iteration'