mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-01-26 16:16:31 -06:00
Remove duplicated except
Both exceptions have been catched before, so it is bacically dead code Reviewed-By: David Kupka <dkupka@redhat.com>
This commit is contained in:
parent
94a836dd46
commit
0d39abddc2
@ -143,11 +143,6 @@ class Executioner(Backend):
|
||||
'non-public: %s: %s', e.__class__.__name__, str(e)
|
||||
)
|
||||
error = InternalError()
|
||||
except Exception as e:
|
||||
self.exception(
|
||||
'unhandled exception: %s: %s', e.__class__.__name__, str(e)
|
||||
)
|
||||
error = InternalError()
|
||||
destroy_context()
|
||||
if error is None:
|
||||
return result
|
||||
|
@ -491,9 +491,6 @@ class automountlocation_import(LDAPQuery):
|
||||
raise errors.DuplicateEntry(
|
||||
message=_('map %(map)s already exists') % dict(
|
||||
map=am[1]))
|
||||
except errors.DuplicateEntry:
|
||||
# This means the same map is used on several mount points.
|
||||
pass
|
||||
|
||||
# Now iterate over the map files and add the keys. To handle
|
||||
# continuation lines I'll make a pass through it to skip comments
|
||||
|
Loading…
Reference in New Issue
Block a user