74 } |
74 } |
75 ) |
75 ) |
76 templatesDict["template_groups"] = templateGroups |
76 templatesDict["template_groups"] = templateGroups |
77 |
77 |
78 try: |
78 try: |
79 jsonString = json.dumps(templatesDict, indent=2) |
79 jsonString = json.dumps(templatesDict, indent=2) + "\n" |
80 with open(filename, "w") as f: |
80 with open(filename, "w") as f: |
81 f.write(jsonString) |
81 f.write(jsonString) |
82 except (OSError, TypeError) as err: |
82 except (OSError, TypeError) as err: |
83 with EricOverridenCursor(): |
83 with EricOverridenCursor(): |
84 EricMessageBox.critical( |
84 EricMessageBox.critical( |