65 multiProjectDict["projects"] = [ |
65 multiProjectDict["projects"] = [ |
66 p.as_dict() for p in self.__multiProject.getProjects() |
66 p.as_dict() for p in self.__multiProject.getProjects() |
67 ] |
67 ] |
68 |
68 |
69 try: |
69 try: |
70 jsonString = json.dumps(multiProjectDict, indent=2) |
70 jsonString = json.dumps(multiProjectDict, indent=2) + "\n" |
71 with open(filename, "w") as f: |
71 with open(filename, "w") as f: |
72 f.write(jsonString) |
72 f.write(jsonString) |
73 except (OSError, TypeError) as err: |
73 except (OSError, TypeError) as err: |
74 with EricOverridenCursor(): |
74 with EricOverridenCursor(): |
75 EricMessageBox.critical( |
75 EricMessageBox.critical( |