Commits

Yuya Nishihara committed 72334d2

bisect: handle ambiguous revision gracefully

  • Participants
  • Parent commits 303b6ee

Comments (0)

Files changed (1)

tortoisehg/hgqt/bisect.py

             self._bb.setEnabled(True)
             self._ble.setEnabled(True)
             self._ble.setFocus()
-        except error.RepoLookupError, e:
+        except (error.LookupError, error.RepoLookupError), e:
             self.cmd.core.stbar.showMessage(hglib.tounicode(str(e)))
         except util.Abort, e:
             if e.hint:
             cmds.append(self._bisectcmd(self.goodrev, good=True))
             cmds.append(self._bisectcmd(self.badrev, bad=True))
             self.cmd.run(*cmds)
-        except error.RepoLookupError, e:
+        except (error.LookupError, error.RepoLookupError), e:
             self.cmd.core.stbar.showMessage(hglib.tounicode(str(e)))
         except util.Abort, e:
             if e.hint: