Handle corrupted modules.json. Fix #1
Fix for #1 (closed) To note: Other exceptions with the JSON load are not considered. Should we?
Minimal example to reproduce the fix:
import json
json_data = {}
try:
json_data = json.loads("{}")
except ValueError:
print("File is corrupt")
Edited by Cristian Baldi