Patchwork D5626: scmutil: drop unreachable except clause

login
register
mail settings
Submitter phabricator
Date Jan. 18, 2019, 12:36 p.m.
Message ID <b6d9bb69dd36651a007584e8fda78258@localhost.localdomain>
Download mbox | patch
Permalink /patch/37872/
State Not Applicable
Headers show

Comments

phabricator - Jan. 18, 2019, 12:36 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG17941fc53ae9: scmutil: drop unreachable except clause (authored by martinvonz, committed by ).

CHANGED PRIOR TO COMMIT
  https://phab.mercurial-scm.org/D5626?vs=13309&id=13323#toc

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D5626?vs=13309&id=13323

REVISION DETAIL
  https://phab.mercurial-scm.org/D5626

AFFECTED FILES
  mercurial/scmutil.py

CHANGE DETAILS




To: martinvonz, #hg-reviewers
Cc: yuja, mercurial-devel

Patch

diff --git a/mercurial/scmutil.py b/mercurial/scmutil.py
--- a/mercurial/scmutil.py
+++ b/mercurial/scmutil.py
@@ -12,7 +12,6 @@ 
 import hashlib
 import os
 import re
-import socket
 import subprocess
 import weakref
 
@@ -270,8 +269,6 @@ 
         # Commands shouldn't sys.exit directly, but give a return code.
         # Just in case catch this and and pass exit code to caller.
         return inst.code
-    except socket.error as inst:
-        ui.error(_("abort: %s\n") % stringutil.forcebytestr(inst.args[-1]))
 
     return -1