summaryrefslogtreecommitdiffstats
path: root/ipaplatform
diff options
context:
space:
mode:
authorMartin Basti <mbasti@redhat.com>2016-03-11 19:51:07 +0100
committerMartin Basti <mbasti@redhat.com>2016-03-22 10:20:51 +0100
commit491447cc5ab8c5eff2be57d609201cefb79f7053 (patch)
tree401ff990eddb00a6fed63ed9dd5c0e4b546799c4 /ipaplatform
parentaa749957360b85fecaed2f9f8dc286f560b89e0b (diff)
downloadfreeipa-491447cc5ab8c5eff2be57d609201cefb79f7053.tar.gz
freeipa-491447cc5ab8c5eff2be57d609201cefb79f7053.tar.xz
freeipa-491447cc5ab8c5eff2be57d609201cefb79f7053.zip
pylint: remove bare except
Bare except should not be used. Reviewed-By: Petr Spacek <pspacek@redhat.com> Reviewed-By: Lukas Slebodnik <lslebodn@redhat.com>
Diffstat (limited to 'ipaplatform')
-rw-r--r--ipaplatform/base/services.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ipaplatform/base/services.py b/ipaplatform/base/services.py
index 2ec84cdb2..11d0c2a83 100644
--- a/ipaplatform/base/services.py
+++ b/ipaplatform/base/services.py
@@ -434,7 +434,7 @@ class SystemdService(PlatformService):
os.unlink(srv_lnk)
os.symlink(self.lib_path, srv_lnk)
ipautil.run([paths.SYSTEMCTL, "--system", "daemon-reload"])
- except:
+ except Exception:
pass
else:
self.__enable(instance_name)
@@ -457,7 +457,7 @@ class SystemdService(PlatformService):
if os.path.islink(srv_lnk):
os.unlink(srv_lnk)
ipautil.run([paths.SYSTEMCTL, "--system", "daemon-reload"])
- except:
+ except Exception:
pass
else:
try: