Closed oovs closed 5 years ago
ConnectionRefusedError
exception is not available in Python2, only in Python3. Thus you get that error. I guess I have to switch to socket.error
exception which is present in both versions of Python.
I've applied the PR #8 locally because I require quick fix and I could say it works fine.
A simpler solution was done by https://github.com/unixsurfer/haproxyadmin/commit/9227df29495e7ba079c5f8ca3f6616e82e91fd81
Throws an exception on
Python 2.7.9
:Packages version: