1. TortoiseHg
  2. TortoiseHg
  3. thg

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

  • Participants
  • Parent commits 3ea0244
  • Branches stable

Comments (0)

Files changed (1)

File tortoisehg/hgtk/quickop.py

View file
                                  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: