LiamDowd commited on
Commit
29831d7
1 Parent(s): fa075a8

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -47,7 +47,7 @@ def valueInJSON(value, key):
47
  return ""
48
 
49
  if not os.path.exists(jsonPath):
50
- with open(jsonPath, 'w') as file:
51
  json.dump({"names": {}, "addresses": {}, "companyNames": {}, "phoneNumbers": {}, "emails": {}}, file, indent=2)
52
 
53
  with open(jsonPath, 'r') as file:
 
47
  return ""
48
 
49
  if not os.path.exists(jsonPath):
50
+ with open(jsonPath, 'w+') as file:
51
  json.dump({"names": {}, "addresses": {}, "companyNames": {}, "phoneNumbers": {}, "emails": {}}, file, indent=2)
52
 
53
  with open(jsonPath, 'r') as file: