mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
py3: Remove py3 incompatible exception handling
https://fedorahosted.org/freeipa/ticket/5585 Reviewed-By: Martin Babinsky <mbabinsk@redhat.com>
This commit is contained in:
committed by
Martin Basti
parent
00c13fd340
commit
50627004b8
@@ -752,9 +752,9 @@ def run(api):
|
||||
except KeyboardInterrupt:
|
||||
print ''
|
||||
api.log.info('operation aborted')
|
||||
except PublicError, e:
|
||||
except PublicError as e:
|
||||
error = e
|
||||
except Exception, e:
|
||||
except Exception as e:
|
||||
api.log.exception('%s: %s', e.__class__.__name__, str(e))
|
||||
error = InternalError()
|
||||
if error is not None:
|
||||
|
||||
Reference in New Issue
Block a user