Skip to content

Commit d451acf

Browse files
author
watney
committed
Cleanup for review comments
1 parent 9f9f48c commit d451acf

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/fprime_gds/executables/data_product_writer.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@
6969

7070
import struct
7171
import json
72-
from json import JSONDecodeError
7372
import os
7473
import sys
7574
from typing import List, Dict, Union, ForwardRef
@@ -859,7 +858,7 @@ def process(args):
859858
try:
860859
with open(args.jsonDict, 'r') as fprimeDictFile:
861860
dictJSON = FprimeDict(**json.load(fprimeDictFile))
862-
except JSONDecodeError as e:
861+
except json.JSONDecodeError as e:
863862
raise DictionaryError(args.jsonDict, e.lineno)
864863

865864
check_record_data(dictJSON)
@@ -895,7 +894,7 @@ def process(args):
895894
raise CRCError("Data", headerData['dataHash'], computedCRC)
896895

897896

898-
except (FileNotFoundError, RecordIDNotFound, IOError, KeyError, JSONDecodeError,
897+
except (FileNotFoundError, RecordIDNotFound, IOError, KeyError, json.JSONDecodeError,
899898
DictionaryError, CRCError, DuplicateRecordID) as e:
900899
handleException(e)
901900

0 commit comments

Comments
 (0)