mercurial/dispatch.py
changeset 32040 0fb78cb90ca7
parent 31960 71dcd4a4fa2f
child 32041 38963a53ab0d
equal deleted inserted replaced
32039:2ab7578e685b 32040:0fb78cb90ca7
   256                 traceback.print_exc()
   256                 traceback.print_exc()
   257                 debugmortem[debugger](sys.exc_info()[2])
   257                 debugmortem[debugger](sys.exc_info()[2])
   258             ui.traceback()
   258             ui.traceback()
   259             raise
   259             raise
   260 
   260 
   261     return callcatch(ui, _runcatchfunc)
   261     return _callcatch(ui, _runcatchfunc)
   262 
   262 
   263 def callcatch(ui, func):
   263 def _callcatch(ui, func):
   264     """like scmutil.callcatch but handles more high-level exceptions about
   264     """like scmutil.callcatch but handles more high-level exceptions about
   265     config parsing and commands. besides, use handlecommandexception to handle
   265     config parsing and commands. besides, use handlecommandexception to handle
   266     uncaught exceptions.
   266     uncaught exceptions.
   267     """
   267     """
   268     try:
   268     try: