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 committed 2016-02-25 13:48:44 +01:00
1 parent 94a836dd46
commit 0d39abddc2
3 files changed
-9

No files matched your search

-5
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
-3
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
-1
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,