Different kinds of Import Errors

Aahz aahz at pythoncraft.com
Tue Nov 27 16:50:10 EST 2007


In article <a07cf37e-fd55-4bd2-a5f7-296abcee414b at s8g2000prg.googlegroups.com>,
 <kyosohma at gmail.com> wrote:
>
># untested
>args = exc.args[0]
>if args.find('management') != -1:
>    raise

YM

if 'management' in args:
    raise

HTH, HAND  ;-)
-- 
Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/

"Typing is cheap.  Thinking is expensive."  --Roy Smith



More information about the Python-list mailing list