Commits

Yuya Nishihara committed 67c5024

run: use "is" operator to test exception class

  • Participants
  • Parent commits 71df17b
  • Branches stable

Comments (0)

Files changed (1)

File tortoisehg/hgqt/run.py

             and etype in self._recoverableexc):
             opts['values'] = evalue
             errstr = self._recoverableexc[etype]
-            if etype == error.Abort and evalue.hint:
+            if etype is error.Abort and evalue.hint:
                 errstr = u''.join([errstr, u'<br><b>', _('hint:'),
                                    u'</b> %(arg1)s'])
                 opts['values'] = [str(evalue), evalue.hint]