Debugger: Fix startup when Python's json module is missing

Task-number: QTCREATORBUG-24004
Change-Id: I1c0563868374263f13cec3a8f40138bce71338d6
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
hjk
2020-05-11 10:13:54 +02:00
parent 050dec20dd
commit 65935ce03c

View File

@@ -40,7 +40,7 @@ try:
# that will never use this.
import json
except ModuleNotFoundError:
DumperBase.warn("Python module json not found. "
print("Python module json not found. "
"Native combined debugging might not work.")
pass