refactor: builtin upload file method

This commit is contained in:
debugtalk
2020-06-03 18:32:31 +08:00
parent 7476dc1343
commit cb0984aadb
4 changed files with 29 additions and 41 deletions

View File

@@ -48,7 +48,6 @@ def _load_json_file(json_file: Text) -> Dict:
json_content = json.load(data_file)
except json.JSONDecodeError as ex:
err_msg = f"JSONDecodeError:\nfile: {json_file}\nerror: {ex}"
logger.error(err_msg)
raise exceptions.FileFormatError(err_msg)
return json_content