summaryrefslogtreecommitdiffstats
path: root/base/tps
diff options
context:
space:
mode:
authorChristian Heimes <cheimes@redhat.com>2015-07-15 11:11:35 +0200
committerChristian Heimes <cheimes@redhat.com>2015-08-10 11:58:44 +0200
commit1738f27d3683d58b3ab023724eb8d0133c428eef (patch)
treeb45ef3fe9ccea6121f29b7b10c8eca5cf1ea0967 /base/tps
parent8ae5ec7f3774d81a1c3d79c2a05649de65b8658c (diff)
downloadpki-1738f27d3683d58b3ab023724eb8d0133c428eef.tar.gz
pki-1738f27d3683d58b3ab023724eb8d0133c428eef.tar.xz
pki-1738f27d3683d58b3ab023724eb8d0133c428eef.zip
Replace Exception.message with str(exc)
Python 3 has deprecated and remove Exception.message. Instead we should simply use string formatting to print the message of an Exception. >>> import pki >>> pki.PKIException('msg') PKIException('msg',) >>> pki.PKIException('msg').message 'msg' >>> str(pki.PKIException('msg')) 'msg' >>> '%s' % pki.PKIException('msg') 'msg'
Diffstat (limited to 'base/tps')
0 files changed, 0 insertions, 0 deletions