Commit b3676f57 authored by Alejandro Alvarez Ayllon's avatar Alejandro Alvarez Ayllon
Browse files

Fixed error notification

parent c73d3918
......@@ -62,6 +62,8 @@ class Context(object):
self.ucert = ucert
self.ukey = ukey
self.ucert = self.ukey = None
def _setEndpoint(self, endpoint):
self.endpoint = endpoint
......@@ -75,7 +77,7 @@ class Context(object):
except FTS3ClientException:
except Exception, e:
raise BadEndpoint("%s (%s)"), None, sys.exc_info()[2]
raise BadEndpoint("%s (%s)" % (self.endpoint, str(e))), None, sys.exc_info()[2]
return endpointInfo
def __init__(self, endpoint, ucert=None, ukey=None, logger=None, **kwargs):
......@@ -5,11 +5,11 @@ class FTS3ClientException(Exception):
class BadEndpoint(FTS3ClientException):
def __init__(self, endpoint):
self.endpoint = endpoint
def __init__(self, reason):
self.reason = reason
def __str__(self):
return "Bad endpoint: %s" % self.endpoint
return "Bad endpoint: %s" % self.reason
class Unauthorized(FTS3ClientException):
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment