mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2026-11-03 04:40:31 -06:00
Replace StandardError with Exception
StandardError was removed in Python3 and instead Exception should be used. Signed-off-by: Robert Kuska <rkuska@redhat.com> Reviewed-By: Jan Cholasta <jcholast@redhat.com>
This commit is contained in:
1 parent
34e6c3ea05
commit
01da4a8de3
21 files changed
+49
-49
No files matched your search
+1
-1
@@ -754,7 +754,7 @@ def run(api):
|
||||
api.log.info('operation aborted')
|
||||
except PublicError, e:
|
||||
error = e
|
||||
except StandardError, e:
|
||||
except Exception, e:
|
||||
api.log.exception('%s: %s', e.__class__.__name__, str(e))
|
||||
error = InternalError()
|
||||
if error is not None:
|
||||
|
||||
@@ -13,7 +13,7 @@ env._finalize_core(**dict(DEFAULT_CONFIG))
|
||||
api.bootstrap(context='server', debug=env.debug, log=None) (ref:wsgi-app-bootstrap)
|
||||
try:
|
||||
api.finalize() (ref:wsgi-app-finalize)
|
||||
except StandardError, e:
|
||||
except Exception, e:
|
||||
api.log.error('Failed to start IPA: %s' % e)
|
||||
else:
|
||||
api.log.info('*** PROCESS START ***')
|
||||
|
||||
Reference in new issue
Block a user