mirror of
https://github.com/kennethreitz-archive/pyinstaller.git
synced 2026-06-05 23:50:17 +00:00
6fcf6732c5
exception handling during imports. git-svn-id: http://svn.pyinstaller.org/trunk@586 8dd32b29-ccff-0310-8a9a-9233e24343b1
9 lines
188 B
Python
Executable File
9 lines
188 B
Python
Executable File
# See ticket #27: historically, PyInstaller was catching all errors during imports...
|
|
try:
|
|
import error_during_import2
|
|
except KeyError:
|
|
print "OK"
|
|
else:
|
|
raise RuntimeError("failure!")
|
|
|