Skip to content

Commit

Permalink
improve logs
Browse files Browse the repository at this point in the history
  • Loading branch information
mbussolotto committed Sep 5, 2023
1 parent e6d3b42 commit cb63465
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/rhn/transports.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ def __init__(self, transfer=0, encoding=0, refreshCallback=None,

def add_trusted_cert(self, certfile):
if not os.access(certfile, os.R_OK):
raise ValueError("Certificate file %s is not accessible" % certfile)
raise ValueError("SafeTransport: Certificate file %s is not accessible" % certfile)
self.trusted_certs.append(certfile)

def get_connection(self, host):
Expand Down Expand Up @@ -316,7 +316,7 @@ def __init__(self, proxy, proxyUsername=None, proxyPassword=None,

def add_trusted_cert(self, certfile):
if not os.access(certfile, os.R_OK):
raise ValueError("Certificate file %s is not accessible" % certfile)
raise ValueError("SafeProxyTransport:Certificate file %s is not accessible" % certfile)
self.trusted_certs.append(certfile)

def get_connection(self, host):
Expand Down

0 comments on commit cb63465

Please sign in to comment.