diff options
author | Robert Kuska <rkuska@redhat.com> | 2015-08-24 12:40:33 +0200 |
---|---|---|
committer | Jan Cholasta <jcholast@redhat.com> | 2015-09-30 10:51:36 +0200 |
commit | 01da4a8de3ed8651cc95df6125751e1603dbd14e (patch) | |
tree | 823856bad461808163b3fc05c54e0d87d26dd381 /ipalib/backend.py | |
parent | 34e6c3ea05b23f4a5fe6fb6aaadd394967f31340 (diff) | |
download | freeipa-01da4a8de3ed8651cc95df6125751e1603dbd14e.tar.gz freeipa-01da4a8de3ed8651cc95df6125751e1603dbd14e.tar.xz freeipa-01da4a8de3ed8651cc95df6125751e1603dbd14e.zip |
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>
Diffstat (limited to 'ipalib/backend.py')
-rw-r--r-- | ipalib/backend.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ipalib/backend.py b/ipalib/backend.py index 288a0edf2..b8fa29626 100644 --- a/ipalib/backend.py +++ b/ipalib/backend.py @@ -56,7 +56,7 @@ class Connectible(Backend): Create thread-local connection. """ if hasattr(context, self.id): - raise StandardError( + raise Exception( "connect: 'context.%s' already exists in thread %r" % ( self.id, threading.currentThread().getName() ) @@ -71,7 +71,7 @@ class Connectible(Backend): def disconnect(self): if not hasattr(context, self.id): - raise StandardError( + raise Exception( "disconnect: 'context.%s' does not exist in thread %r" % ( self.id, threading.currentThread().getName() ) @@ -130,7 +130,7 @@ class Executioner(Backend): result = self.Command[_name](*args, **options) except PublicError as e: error = e - except StandardError as e: + except Exception as e: self.exception( 'non-public: %s: %s', e.__class__.__name__, str(e) ) |