diff options
author | Christophe Vu-Brugier <cvubrugier@fastmail.fm> | 2015-06-04 13:43:29 +0200 |
---|---|---|
committer | Christophe Vu-Brugier <cvubrugier@fastmail.fm> | 2015-06-05 10:19:24 +0200 |
commit | 05380c720281b56f5565ccc564f08b222f0f9ceb (patch) | |
tree | 9ab82460fa83aefd0c38c396bae827415eff782e | |
parent | 2196d07e12736e324656cd640922839d7bdcbdfd (diff) | |
download | rtslib-fb-05380c720281b56f5565ccc564f08b222f0f9ceb.tar.gz |
Replace the undefined ExecutionError exception with RTSLibError
ExecutionError is not defined in rtslib-fb and is not a built-in
exception. Raise an RTSLibError exception instead.
This patch fixes the following Pylint error:
E:1263,14: Undefined variable 'ExecutionError' (undefined-variable)
Signed-off-by: Christophe Vu-Brugier <cvubrugier@fastmail.fm>
-rw-r--r-- | rtslib/target.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rtslib/target.py b/rtslib/target.py index dfe5d7b..73bf689 100644 --- a/rtslib/target.py +++ b/rtslib/target.py @@ -1260,7 +1260,7 @@ class Group(object): def _check_group_name(name): # Since all WWNs have a '.' in them, let's avoid confusion. if '.' in name: - raise ExecutionError("'.' not permitted in group names.") + raise RTSLibError("'.' not permitted in group names.") class NodeACLGroup(Group): |