From: Mike C. F. <mcf...@ro...> - 2004-02-25 11:02:38
|
There's a minor bug in __closeCursors, basically there's an assumption made that the weakrefs will all resolve to cursor instances, when they can just as easily return a None: if noWeakRef: curs = self.cursors[:] else: curs = filter( None, map(lambda x: x(), self.cursors.data.values())) without this you'll see this every once in a while: Exception exceptions.AttributeError: "'NoneType' object has no attribute 'close'" in <bound method Connection.__del__ of <pyPgSQL.PgSQL.Connection instance at 0x0131A648>> ignored Enjoy all, Mike _______________________________________ Mike C. Fletcher Designer, VR Plumber, Coder http://members.rogers.com/mcfletch/ |