diff options
author | Martin Basti <mbasti@redhat.com> | 2016-03-11 19:51:07 +0100 |
---|---|---|
committer | Martin Basti <mbasti@redhat.com> | 2016-03-22 10:20:51 +0100 |
commit | 491447cc5ab8c5eff2be57d609201cefb79f7053 (patch) | |
tree | 401ff990eddb00a6fed63ed9dd5c0e4b546799c4 /ipalib/cli.py | |
parent | aa749957360b85fecaed2f9f8dc286f560b89e0b (diff) | |
download | freeipa-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 'ipalib/cli.py')
-rw-r--r-- | ipalib/cli.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ipalib/cli.py b/ipalib/cli.py index e1abaa5d5..3592d3b61 100644 --- a/ipalib/cli.py +++ b/ipalib/cli.py @@ -663,7 +663,7 @@ class textui(backend.Backend): selection = int(resp) - 1 if (selection >= 0 and selection < counter): break - except: + except Exception: # fall through to the error msg pass @@ -907,7 +907,7 @@ class console(frontend.Command): try: with script: exec(script, globals(), local) - except: + except Exception: traceback.print_exc() exit(1) else: |