Commits

Steve Borho  committed f71be55

status: catch OSError from repo.status()

Try not to barf when Python/Mercurial have a filename encoding argument.
Crashes from the status() thread are unhelpful.

Closes #1062

  • Participants
  • Parent commits 56b42d0
  • Branches stable

Comments (0)

Files changed (1)

File tortoisehg/hgtk/status.py

                                      clean=clean,
                                      unknown=unknown)
                 self.status = status
-            except (IOError, util.Abort), e:
+            except (OSError, IOError, util.Abort), e:
                 self.status_error = str(e)
             self.subrepos = []
             wctx = repo[None]
                 for s in wctx.substate:
                     if matcher(s) and wctx.sub(s).dirty():
                         self.subrepos.append(s)
-            except (IOError, error.ConfigError), e:
+            except (OSError, IOError, error.ConfigError), e:
                 self.status_error = str(e)
 
         def status_wait(thread):