Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.0.1, 1.0.2, and 1.0.3

stable settings: catch OSError from os.makedirs

Fixes #1032

Changeset 2a32e538ed55

Parent fabcf89b8242

by Steve Borho

Changes to one file · Browse files at 2a32e538ed55 Showing diff from parent fabcf89b8242 Diff from another changeset...

 
96
97
98
99
 
100
101
102
 
115
116
117
118
 
 
 
 
 
96
97
98
 
99
100
101
102
 
115
116
117
 
118
119
120
121
@@ -96,7 +96,7 @@
  f.write(s)   try:   f.rename() - except WindowsError: + except OSError:   pass # silently ignore these errors     def _get_path(self, appname): @@ -115,4 +115,7 @@
  def _audit(self):   if os.path.exists(os.path.dirname(self._path)):   return - os.makedirs(os.path.dirname(self._path)) + try: + os.makedirs(os.path.dirname(self._path)) + except OSError: + pass # silently ignore these errors