b95299f0ad800da564282387887b1529b2fc2434,src/python/pants/java/nailgun_client.py,NailgunClient,try_connect,#NailgunClient#,131

Before Change


    
    sock = RecvBufferedSocket(socket.socket(socket.AF_INET, socket.SOCK_STREAM))
    try:
      sock.connect((self._host, self._port))
    except (socket.error, socket.gaierror) as e:
      logger.debug("Encountered socket exception {!r} when attempting connect to nailgun".format(e))
      sock.close()

After Change


        address=self._address_string,
        pid=self.pid,
        wrapped_exc=e,
        traceback=sys.exc_info()[2]
      )
    else:
      return sock
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: try_connect


Project Name: ncoudray/DeepPATH
Commit Name: 64c0ea557df21a7585f6fd0fef9d1b0c20f2da3d
Time: 2019-11-19
Author: coudrn01@bigpurple-ln2.cm.cluster
File Name: DeepPATH_code/00_preprocessing/0b_tileLoop_deepzoom4.py
Class Name:
Method Name:


Project Name: thenetcircle/dino
Commit Name: ccfaf76a116ed4774784888317d4cec0448e1638
Time: 2019-03-05
Author: oscar.eriks@gmail.com
File Name: dino/validation/request.py
Class Name: RequestValidator
Method Name: on_message