1880 try: |
1880 try: |
1881 with open(cname, "w") as f: |
1881 with open(cname, "w") as f: |
1882 f.write(src) |
1882 f.write(src) |
1883 self.__configChanged() |
1883 self.__configChanged() |
1884 self.__editConfig() |
1884 self.__editConfig() |
1885 except IOError as err: |
1885 except OSError as err: |
1886 E5MessageBox.critical( |
1886 E5MessageBox.critical( |
1887 None, |
1887 None, |
1888 self.tr("Update Configuration"), |
1888 self.tr("Update Configuration"), |
1889 self.tr("""<p>The configuration could not be""" |
1889 self.tr("""<p>The configuration could not be""" |
1890 """ updated.</p><p>Reason: {0}</p>""") |
1890 """ updated.</p><p>Reason: {0}</p>""") |