diff options
author | Petr Viktorin <pviktori@redhat.com> | 2016-01-05 13:36:15 +0100 |
---|---|---|
committer | Jan Cholasta <jcholast@redhat.com> | 2016-01-20 11:59:21 +0100 |
commit | 465dd9829c2df1b82a5c4734b125cf587bf5077a (patch) | |
tree | 39e6d77f9c1976b783f00c48e000b714d1a48b2e /doc/examples/python-api.py | |
parent | 126d8993217e356e771ba9781fb08fa9b3400b11 (diff) | |
download | freeipa-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