Log matplotlib activation errors (PY-26369)

This commit is contained in:
Elizaveta Shashkova
2018-04-02 20:45:41 +03:00
parent a98aa9ed91
commit e34124b91b
@@ -1,5 +1,6 @@
import sys
import traceback
from types import ModuleType
@@ -23,6 +24,7 @@ class ImportHookManager(ModuleType):
activate_func() #call activate function
except:
sys.stderr.write("Matplotlib support failed\n")
traceback.print_exc()
return module
if sys.version_info[0] >= 3: