1. TortoiseHg
  2. TortoiseHg
  3. thg

Commits

Steve Borho  committed 486e3dc

gdialog: catch LookupError from Mercurial commands

Refs #1200

  • Participants
  • Parent commits 15d2774
  • Branches stable

Comments (0)

Files changed (1)

File tortoisehg/hgtk/gdialog.py

View file
             except (util.Abort, IOError, OSError), inst:
                 Prompt(title + _(' Aborted'), str(inst), self).run()
                 return False, ''
+            except error.LookupError, inst:
+                Prompt(title + _(' Aborted'), str(inst) + 
+                        _(', please refresh'), self).run()
+                return False, ''
         finally:
             sys.stderr = saved
             textout = self.ui.popbuffer()