<div class="gmail_quote">On Tue, Dec 29, 2009 at 12:21 PM, MRAB <span dir="ltr"><<a href="mailto:python@mrabarnett.plus.com">python@mrabarnett.plus.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Victor Subervi wrote:<div class="im"><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Tue, Dec 29, 2009 at 6:29 AM, Jean-Michel Pichavant <<a href="mailto:jeanmichel@sequans.com" target="_blank">jeanmichel@sequans.com</a> <mailto:<a href="mailto:jeanmichel@sequans.com" target="_blank">jeanmichel@sequans.com</a>>> wrote:<br>

<br>
    Matt Nordhoff wrote:<br>
<br>
        Victor Subervi wrote:<br>
<br>
            On Mon, Dec 28, 2009 at 1:41 PM, MRAB<br>
            <<a href="mailto:python@mrabarnett.plus.com" target="_blank">python@mrabarnett.plus.com</a> <mailto:<a href="mailto:python@mrabarnett.plus.com" target="_blank">python@mrabarnett.plus.com</a>><br>
            <mailto:<a href="mailto:python@mrabarnett.plus.com" target="_blank">python@mrabarnett.plus.com</a><br>
            <mailto:<a href="mailto:python@mrabarnett.plus.com" target="_blank">python@mrabarnett.plus.com</a>>>> wrote:<br>
<br>
                DON'T USE BARE EXCEPTS!<br>
<br>
                (There are 2 in your code.)<br>
<br>
            There are times when they are *necessary*.<br>
<br>
        No, there aren't.<br>
<br>
        Even if there were, this is not one of those situations.<br>
<br>
    And to elaborate a little bit, someone said in this list (sorry,<br>
    don't remember who) that often people think that making their code<br>
    robust is one of the top priority, especially when you are providing<br>
    some services to clients. That could be true. The fact is that most<br>
    newcomers thinks bare try except will do the trick: "look, my server<br>
    never crashes". Yes it does not crash, but even worse, it handles<br>
    exception in an inapropriate way that leads the server to behave in<br>
    a reliable, yet unpredictable, manner. And that is definitely *not*<br>
    being robust.<br>
<br>
You all have made very good points about bare excepts. I promise you I will work on this...AFTER I've finished the first working copy of this shopping cart and gotten caught up on my work, and start to clean this shopping cart up to make it truly professional. HOWEVER, there is NO bare except influencing the problem which I am trying to fix. Can we PLEASE set this issue aside and deal with the problem of this post?? <br>

</blockquote></div>
[snip]<br>
<br>
Bare excepts hide bugs. It's very easy to catch exceptions properly.</blockquote><div><br>I'll get there.<br>beno<br></div></div>