Repository :
http://git.fedorahosted.org/cgit/cura-tools.git
On branch : master
---------------------------------------------------------------
commit 6e9e14979e6c9b90143be84762d2ca1280c93338
Author: Peter Hatina <phatina(a)redhat.com>
Date: Fri Jul 19 12:29:07 2013 +0200
drop standalone (re)raise statements
---------------------------------------------------------------
cli-tools/lmi/lmi_client_shell.py | 4 ++--
cli-tools/lmishell | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/cli-tools/lmi/lmi_client_shell.py b/cli-tools/lmi/lmi_client_shell.py
index ba5ffe3..2cb6c17 100644
--- a/cli-tools/lmi/lmi_client_shell.py
+++ b/cli-tools/lmi/lmi_client_shell.py
@@ -121,7 +121,7 @@ def _lmi_start_indication_listener(hostname, port, handler, certfile =
None, key
listener.start()
except socket.error, e:
if LmiBaseClient._get_use_exceptions():
- raise
+ raise e
return LmiReturnValue(
use_display_hook = True,
rval = False,
@@ -2773,7 +2773,7 @@ class LmiConnection(object):
if e.args[0] == pywbem.cim_constants.CIM_ERR_NOT_FOUND:
return True
if use_exceptions:
- raise
+ raise e
return False
except pywbem.cim_http.AuthError, e:
return False
diff --git a/cli-tools/lmishell b/cli-tools/lmishell
index d4ef7f9..024ba20 100755
--- a/cli-tools/lmishell
+++ b/cli-tools/lmishell
@@ -518,7 +518,7 @@ def __lmi_raw_input(prompt, use_echo = True):
except KeyboardInterrupt, e:
if not use_echo:
os.system("stty echo")
- raise
+ raise e
if not use_echo:
os.system("stty echo")
sys.stdout.write("\n")