<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>I'm using the xmlrpc MultiCall class pretty heavily in an application and every time I've somehow caused an error in the xmlrpclib.py code, I get an exception trying to raise the exception.</div><div><br></div><div>Here's the most recent example:&nbsp;</div><div><br></div><div>grouped = grouper(2, tuple(mc_result))</div><div>File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/xmlrpclib.py", line 1001, in __getitem__</div><div>raise Fault(item['faultCode'], item['faultString'])</div><div>Fault: &lt;Fault 1: "&lt;type 'exceptions.TypeError'&gt;:'NoneType' object is unsubscriptable"&gt;</div><div><br></div><div>I could understand if I was making some sort of coding error, then getting an error, but the Fault object itself, whenever it is used, seems to be generating some sort of new error either through its use, or, as above, the code attempting to construct the Fault object fails.</div><div><br></div><div>The thing that's confusing about the above error is that there's a check, just before the line of code that fails, that explictly checks whether the type of "item" == type({}): so the code shouldn't even get called with "NoneType".</div><div><br></div><div>This all smells horribly like corrupt memory so I'm hoping someone on this list has seen symptoms like this and can point me in the right direction to start tracking this down.</div><div><br></div><div>This, btw, is a pretty simple, maybe 200 line pure Python app that is using the XML-RPC interface, SQLite, and zlib functions.</div><div><br></div><div>I'm wondering if an earlier, uncaught error is actually setting this up but it's only happened about 4 times, at completely unpredictable times, and doesn't seem to be repeatable.</div><div><br></div><div>Definitely in line for best bug report ever.</div><div><br></div><div>Anyone seen this specific symptom, regardless of cause?</div><div><br></div><div>S</div><div><br></div><div>
<span class="Apple-style-span" style="font-size: 12px; "><div><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="font-size: 14px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font class="Apple-style-span" size="3">Stephen F. Steiner</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font class="Apple-style-span" size="3">Integrated Development Corporation</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><a href="mailto:ssteiner@integrateddevcorp.com"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="color: rgb(0, 0, 238); ">ssteiner@integrateddevcorp.com</span></font></a></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font class="Apple-style-span" size="3"><a href="http://www.integrateddevcorp.com"><font class="Apple-style-span" size="4"><span class="Apple-style-span" style="color: rgb(0, 0, 238); ">www.integrateddevcorp.com&nbsp;</span></font></a></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font class="Apple-style-span" size="3">(603)433-1232</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 14px/normal Helvetica; min-height: 17px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 14px/normal Helvetica; min-height: 17px; "><br class="khtml-block-placeholder"></div></div></span></div></div></span><br class="Apple-interchange-newline">
</div>
<br></body></html>