Debugger: Drop unnecessary use of ModuleNotFoundError

That's Python 3 only, and doesn't add value here.

Change-Id: I9b1702ea8b0b0ddb090fdfc393228b4430da0b07
Task-number: QTCREATORBUG-24004
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
hjk
2020-05-25 11:42:18 +02:00
parent 49ac9bb517
commit e71c0b7fe2

View File

@@ -39,7 +39,7 @@ try:
# we do not need to hard fail in cases of partial python installation # we do not need to hard fail in cases of partial python installation
# that will never use this. # that will never use this.
import json import json
except ModuleNotFoundError: except:
print("Python module json not found. " print("Python module json not found. "
"Native combined debugging might not work.") "Native combined debugging might not work.")
pass pass