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

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