<type 'exceptions.KeyError'> | Python 2.6.5: /usr/bin/python Sun Oct 13 16:40:12 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.
/home/httpd/cgi-bin/spitem in |
5 import os |
6 os.environ['LANG'] = 'fr' |
7 from edbm30 import edbmw3 |
8 |
9 edbmw3.run_application('/ums1/SPS', 'spitem') |
edbmw3 = <module 'edbm30.edbmw3' from '/ums1/lib/python/edbm30/edbmw3.pyc'>, edbmw3.run_application = <function run_application> |
/ums1/lib/python/edbm30/edbmw3.py in run_application(app_root='/ums1/SPS', name='spitem', debug=1) |
110 app_class = getattr(module, classname) |
111 app = app_class(name) |
112 app.run() |
113 |
114 class CGIDoc(Documents.CGIMixIn, Documents.Document): |
app = <spw3.SPITEM instance>, app.run = <bound method SPITEM.run of <spw3.SPITEM instance>> |
/ums1/SPS/lib.new/spw3.py in run(self=<spw3.SPITEM instance>) |
333 db = edbm.getdb('sp') |
334 id = form['id'] |
335 item = db.get_by_key('id', id) |
336 doc = SPItemDoc(item) |
337 doc.writeto() |
item undefined, db = <edbm30.edbm.DataBase instance>, db.get_by_key = <bound method DataBase.get_by_key of <edbm30.edbm.DataBase instance>>, id = '1485' |
/ums1/lib/python/edbm30/edbm.py in get_by_key(self=<edbm30.edbm.DataBase instance>, keyname='id', keyvalue='1485') |
284 return self._factory and self._factory(item) or item |
285 def get_by_key(self, keyname, keyvalue): |
286 item = self._db.get_by_key(keyname, keyvalue) |
287 item = self.encoder and self.encoder(item) or item |
288 return self._factory and self._factory(item) or item |
item undefined, self = <edbm30.edbm.DataBase instance>, self._db = <edbmdb object>, self._db.get_by_key = <built-in method get_by_key of edbmdb object>, keyname = 'id', keyvalue = '1485' |
<type 'exceptions.KeyError'>: 'DB_NOTFOUND: No matching key/data pair found'
args =
('DB_NOTFOUND: No matching key/data pair found',)
message =
'DB_NOTFOUND: No matching key/data pair found'