Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.1.3, 1.1.4, and 1.1.5

stable quickop: Check for EnvironmentError, instead of IOError

EnvironmentError is the base class of IOError and OSError.
OSError is the base class of WindowsError.

Closes #1430

Changeset 63aa40878ee1

Parent 3ea02448942e

by Steve Borho

Changes to one file · Browse files at 63aa40878ee1 Showing diff from parent 3ea02448942e Diff from another changeset...

 
150
151
152
153
 
154
155
156
 
265
266
267
268
 
269
270
271
 
150
151
152
 
153
154
155
156
 
265
266
267
 
268
269
270
271
@@ -150,7 +150,7 @@
  clean='C' in filetypes,   ignored='I' in filetypes,   unknown='?' in filetypes) - except (IOError, util.Abort), e: + except (EnvironmentError, util.Abort), e:   gdialog.Prompt(_('Unable to determine repository status'),   str(e), self).run()   self.earlyout=True @@ -265,7 +265,7 @@
  for file in dellist:   try:   os.unlink(file) - except IOError: + except EnvironmentError:   pass     if not list: