b95299f0ad800da564282387887b1529b2fc2434,src/python/pants/java/nailgun_client.py,NailgunClient,execute,#NailgunClient#Any#Any#,158

Before Change


      raise self.NailgunError("Problem communicating with nailgun server at {}:{}: {!r}"
                              .format(self._host, self._port, e))
    except NailgunProtocol.ProtocolError as e:
      raise self.NailgunError("Problem in nailgun protocol with nailgun server at {}:{}: {!r}"
                              .format(self._host, self._port, e))
    finally:
      sock.close()
      self._session = None

After Change


        address=self._address_string,
        pid=self.pid,
        wrapped_exc=e,
        traceback=sys.exc_info()[2]
      )
    finally:
      sock.close()
      self._session = None
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: pantsbuild/pants
Commit Name: b95299f0ad800da564282387887b1529b2fc2434
Time: 2018-06-12
Author: kwlzn@users.noreply.github.com
File Name: src/python/pants/java/nailgun_client.py
Class Name: NailgunClient
Method Name: execute


Project Name: facebook/FAI-PEP
Commit Name: d1363466b6af9c4580a08fd6e1ca3682aaa97803
Time: 2018-05-23
Author: 34827865+llyfacebook@users.noreply.github.com
File Name: benchmarking/utils/subprocess_with_logger.py
Class Name:
Method Name: processRun


Project Name: pantsbuild/pants
Commit Name: b95299f0ad800da564282387887b1529b2fc2434
Time: 2018-06-12
Author: kwlzn@users.noreply.github.com
File Name: src/python/pants/java/nailgun_client.py
Class Name: NailgunClient
Method Name: try_connect