From 52e748a02e4a4b6effd1c57cc18118f096dcc741 Mon Sep 17 00:00:00 2001 From: nolash Date: Thu, 21 Oct 2021 07:19:42 +0200 Subject: [PATCH] Fix urllib error reference --- chainlib/connection.py | 2 +- setup.cfg | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/chainlib/connection.py b/chainlib/connection.py index eea9d6e..786fda0 100644 --- a/chainlib/connection.py +++ b/chainlib/connection.py @@ -314,7 +314,7 @@ class JSONRPCHTTPConnection(HTTPConnection): try: r = urlopen(req, data=data.encode('utf-8')) - except urllib.error.URLError as e: + except URLError as e: raise RPCException(e) result = json.load(r) diff --git a/setup.cfg b/setup.cfg index 02884ee..1640d09 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = chainlib -version = 0.0.10a5 +version = 0.0.10a6 description = Generic blockchain access library and tooling author = Louis Holbrook author_email = dev@holbrook.no