82 task.toDict() |
82 task.toDict() |
83 for task in ericApp().getObject("TaskViewer").getProjectTasks() |
83 for task in ericApp().getObject("TaskViewer").getProjectTasks() |
84 ] |
84 ] |
85 |
85 |
86 try: |
86 try: |
87 jsonString = json.dumps(tasksDict, indent=2) |
87 jsonString = json.dumps(tasksDict, indent=2) + "\n" |
88 with open(filename, "w") as f: |
88 with open(filename, "w") as f: |
89 f.write(jsonString) |
89 f.write(jsonString) |
90 except (OSError, TypeError) as err: |
90 except (OSError, TypeError) as err: |
91 with EricOverridenCursor(): |
91 with EricOverridenCursor(): |
92 EricMessageBox.critical( |
92 EricMessageBox.critical( |