Skip to content
Snippets Groups Projects
Commit 615e679c authored by Leonard Penzer's avatar Leonard Penzer
Browse files

fix UnicodeDecodeError

UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 42103: ordinal not in range(128)
parent 91005c44
No related branches found
No related tags found
No related merge requests found
......@@ -93,7 +93,7 @@ json.dump(allFirmwareDownloads,open("firmwareDownloads.json","w"),sort_keys=True
nodesdbFilename = "/home/www/html/netinfo/json/nodesdb.json"
if not os.path.isfile(nodesdbFilename):
nodesdbFilename = "nodesdb.json"
data = json.load(open(nodesdbFilename))
data = json.load(open(nodesdbFilename, encoding='utf-8'))
for download in allFirmwareDownloads:
try:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment