summaryrefslogtreecommitdiffstats
path: root/doc/examples/python-api.py
diff options
context:
space:
mode:
authorPetr Viktorin <pviktori@redhat.com>2016-01-05 13:36:15 +0100
committerJan Cholasta <jcholast@redhat.com>2016-01-20 11:59:21 +0100
commit465dd9829c2df1b82a5c4734b125cf587bf5077a (patch)
tree39e6d77f9c1976b783f00c48e000b714d1a48b2e /doc/examples/python-api.py
parent126d8993217e356e771ba9781fb08fa9b3400b11 (diff)
downloadfreeipa-465dd9829c2df1b82a5c4734b125cf587bf5077a.tar.gz
freeipa-465dd9829c2df1b82a5c4734b125cf587bf5077a.tar.xz
freeipa-465dd9829c2df1b82a5c4734b125cf587bf5077a.zip
Don't index exceptions directly
In Python 3, exceptions don't behave as tuples of their arguments; instead of e[1] it's necessary to use e.args[1]. https://fedorahosted.org/freeipa/ticket/5623 Reviewed-By: Jan Cholasta <jcholast@redhat.com> Reviewed-By: Martin Basti <mbasti@redhat.com>
Diffstat (limited to 'doc/examples/python-api.py')
0 files changed, 0 insertions, 0 deletions