<div class="gmail_quote">On Sat, Dec 29, 2012 at 11:59 PM, Terry Reedy <span dir="ltr"><<a href="mailto:tjreedy@udel.edu" target="_blank">tjreedy@udel.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div class="im">On 12/29/2012 3:16 PM, Lennart Regebro wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Yes, but a comprehensible error message is useful even if somebody<br>
messed up the system/configuration.<br>
</blockquote>
<br></div>
Just reuse whatever exception type you create and add a sensible message. Hopefully, it will never be seen.<span class="HOEnZb"><font color="#888888"><br></font></span></blockquote><div><br>I haven't implemented this, but I suspect the code will in the end look for the tzdata module, which means that if it doesn't exist, the error raised is an ImportError.<br>

<br>//Lennart<br></div></div>