May-03-2017, 07:51 PM
You're trying to catch an IOError, but json is raising a ValueError. So your except block never runs, because it's waiting for a different kind of error.
Looks more like the file is opening just fine, there just isn't valid json in it.
Looks more like the file is opening just fine, there just isn't valid json in it.