fedora-java / javapackages

Macros and scripts for Java packaging support
Other
7 stars 15 forks source link

AttributeError: 'ConnectionResetError' object has no attribute 'message' #29

Closed mizdebsk closed 8 years ago

mizdebsk commented 8 years ago

Reproducible on Travis. Happens only with Python 3.

Traceback (most recent call last):
  File "/home/kojan/git/javapackages/python/javapackages/common/mock.py", line 61, in install_artifact
    status = fo.readline()
  File "/usr/lib64/python3.5/socket.py", line 575, in readinto
    return self._sock.recv_into(b)
ConnectionResetError: [Errno 104] Connection reset by peer

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/kojan/git/javapackages/test/../java-utils/request-artifact.py", line 47, in <module>
    install_maven_artifact(sys.argv[2])
  File "/home/kojan/git/javapackages/python/javapackages/common/mock.py", line 73, in install_maven_artifact
    install_artifact(artifact.get_rpm_str(compat_ver=artifact.version))
  File "/home/kojan/git/javapackages/python/javapackages/common/mock.py", line 66, in install_artifact
    raise ConnectionException(e.message)
AttributeError: 'ConnectionResetError' object has no attribute 'message'