<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <br>
    <div class="moz-cite-prefix">On 11/21/2014 01:33 PM, David Kupka
      wrote:<br>
    </div>
    <blockquote cite="mid:546F3124.3040803@redhat.com" type="cite"><a class="moz-txt-link-freetext" href="https://fedorahosted.org/freeipa/ticket/4683">https://fedorahosted.org/freeipa/ticket/4683</a>
      <br>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Freeipa-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Freeipa-devel@redhat.com">Freeipa-devel@redhat.com</a>
<a class="moz-txt-link-freetext" href="https://www.redhat.com/mailman/listinfo/freeipa-devel">https://www.redhat.com/mailman/listinfo/freeipa-devel</a></pre>
    </blockquote>
    <tt><br>
    </tt><tt>-            self.read_header()</tt><tt><br>
    </tt><tt>+            try:</tt><tt><br>
    </tt><tt>+                self.read_header()</tt><tt><br>
    </tt><tt>+            except:</tt><tt><br>
    </tt><tt>+                raise admintool.ScriptError('Cannot read
      backup metadata')</tt><br>
    <br>
    <br>
    Is the bare except clause really necessary?<br>
    <br>
    <a class="moz-txt-link-freetext" href="https://docs.python.org/2.7/howto/doanddont.html#except">https://docs.python.org/2.7/howto/doanddont.html#except</a><br>
    <br>
    <br>
    <pre class="moz-signature" cols="72">-- 
Tomas Babej
Associate Software Engineer | Red Hat | Identity Management
RHCE | Brno Site | IRC: tbabej | freeipa.org </pre>
  </body>
</html>