Commits

Steve Borho committed f8bac29

filedata: ctx.sub() can throw a KeyError (refs #2115)

Safely catch the exception, but the error is mostly ignored

  • Participants
  • Parent commits 64181cb
  • Branches stable

Comments (0)

Files changed (1)

tortoisehg/hgqt/filedata.py

                         else:
                             self.error = _('Not a Mercurial subrepo, not previewable')
                             return
-                except (util.Abort), e:
+                except (util.Abort, KeyError), e:
                     sactual = ''
 
                 out = []