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:
Martin Basti 2016-02-12 17:30:10 +01:00
parent 94a836dd46
commit 0d39abddc2
3 changed files with 0 additions and 9 deletions

View File

@ -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

View File

@ -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

View File

@ -74,7 +74,6 @@ disable=
unsubscriptable-object,
unsupported-membership-test,
not-an-iterable,
duplicate-except,
singleton-comparison,
misplaced-comparison-constant,
consider-using-enumerate,