original) (raw)
(On Sat, Dec 29, 2012 at 11:59 PM, Terry Reedy <tjreedy@udel.edu> wrote:
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.
On 12/29/2012 3:16 PM, Lennart Regebro wrote:Just reuse whatever exception type you create and add a sensible message. Hopefully, it will never be seen.
Yes, but a comprehensible error message is useful even if somebody
messed up the system/configuration.
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.
//Lennart