dabo Commit
Revision 5785
Date: 2010-04-19 09:02:56 -0700 (Mon, 19 Apr 2010)
Author: Ed
Trac: http://trac.dabodev.com/changeset/5785
Changed:
U trunk/dabo/db/dCursorMixin.py
Log:
Fixed an error case pointed out by Roger Gammans (Trac ticket #1349)
Diff:
Modified: trunk/dabo/db/dCursorMixin.py
===================================================================
--- trunk/dabo/db/dCursorMixin.py 2010-04-19 16:01:01 UTC (rev 5784)
+++ trunk/dabo/db/dCursorMixin.py 2010-04-19 16:02:56 UTC (rev 5785)
@@ -781,7 +781,7 @@
pkVal = rec[kf[0]]
else:
pkVal = rec[kf]
- except IndexError:
+ except (IndexError, KeyError):
# No records; default to string
pkVal = ""
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message:
http://leafe.com/archives/byMID/[email protected]