summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristophe Vu-Brugier <cvubrugier@fastmail.fm>2015-06-04 13:43:29 +0200
committerChristophe Vu-Brugier <cvubrugier@fastmail.fm>2015-06-05 10:19:24 +0200
commit05380c720281b56f5565ccc564f08b222f0f9ceb (patch)
tree9ab82460fa83aefd0c38c396bae827415eff782e
parent2196d07e12736e324656cd640922839d7bdcbdfd (diff)
downloadrtslib-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.py2
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):