Evgeniy Zamriy <[EMAIL PROTECTED]> writes:
> I have this code:
> try:
> empty_mod = __import__(some_empty_module)
> except ImportError:
> print "test"
> raise
>
> But python doesn't work with this except:
> ImportError: No module named ....
Your example is incomplete.
>>> try:
... empty_mod = __import__(some_empty_module)
... except ImportError:
... print "test"
... raise
...
Traceback (most recent call last):
File "<stdin>", line 2, in ?
NameError: name 'some_empty_module' is not defined
Can you post a minimal, complete example that shows the behaviour?
--
\ "As we enjoy great advantages from the inventions of others, we |
`\ should be glad to serve others by any invention of ours." -- |
_o__) Benjamin Franklin |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list