Commits

Steve Borho committed 63aa408

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

Comments (0)

Files changed (1)

tortoisehg/hgtk/quickop.py

                                  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
         for file in dellist:
             try:
                 os.unlink(file)
-            except IOError:
+            except EnvironmentError:
                 pass
 
         if not list: