mercurial/dispatch.py
changeset 45887 7eb221b9af6c
parent 45885 600aec73f309
child 45909 ca39c45014fa
--- a/mercurial/dispatch.py	Fri Nov 20 13:24:45 2020 -0800
+++ b/mercurial/dispatch.py	Thu Nov 19 15:13:39 2020 -0800
@@ -258,9 +258,6 @@
         except error.Abort as inst:
             ferr.write(inst.format())
             return -1
-        except error.ParseError as inst:
-            ferr.write(inst.format())
-            return -1
 
         msg = _formatargs(req.args)
         starttime = util.timer()
@@ -466,9 +463,6 @@
         else:
             ui.warn(_(b"hg: %s\n") % inst.message)
             ui.warn(_(b"(use 'hg help -v' for a list of global options)\n"))
-    except error.ParseError as inst:
-        ui.warn(inst.format())
-        return -1
     except error.UnknownCommand as inst:
         nocmdmsg = _(b"hg: unknown command '%s'\n") % inst.command
         try: