1. TortoiseHg
  2. TortoiseHg
  3. thg

Commits

Yuya Nishihara  committed d8c03ad

settings: catch OSError to show warning dialog (closes #3313)

  • Participants
  • Parent commits c352672
  • Branches stable

Comments (0)

Files changed (1)

File tortoisehg/hgqt/settings.py

View file
  • Ignore whitespace
 
         try:
             wconfig.writefile(self.ini, self.fn)
-        except IOError, e:
+        except EnvironmentError, e:
             qtlib.WarningMsgBox(_('Unable to write configuration file'),
                                 str(e), parent=self)