IDEA-CR-61672: PY-41887 ImportError with matplotlib

Print exception only when debug logging is enabled, because uses can have interpreter without matplotlib installed

GitOrigin-RevId: 0b2bf07158280816a70f741e4058fab827df2750
This commit is contained in:
Elizaveta Shashkova
2020-04-20 14:35:57 +03:00
committed by intellij-monorepo-bot
parent 22d35f2723
commit 75ea055d4f

View File

@@ -50,7 +50,8 @@ try:
except:
# fallback in case matplotlib is not loaded correctly
traceback.print_exc()
if SHOW_DEBUG_INFO:
traceback.print_exc()
keys = list(sys.modules.keys())
if modules_list: