Merge "Clean up bare raised pylint warning"
This commit is contained in:
commit
0fdbc4780d
@ -80,7 +80,6 @@ disable=
|
|||||||
keyword-arg-before-vararg,
|
keyword-arg-before-vararg,
|
||||||
too-many-function-args,
|
too-many-function-args,
|
||||||
unsupported-assignment-operation,
|
unsupported-assignment-operation,
|
||||||
misplaced-bare-raise,
|
|
||||||
not-an-iterable,
|
not-an-iterable,
|
||||||
unsupported-membership-test,
|
unsupported-membership-test,
|
||||||
unsupported-assignment-operation,
|
unsupported-assignment-operation,
|
||||||
|
@ -2374,7 +2374,7 @@ class RestClient(object):
|
|||||||
result = self.call(url, None, "GET", log_filter_flag=True)
|
result = self.call(url, None, "GET", log_filter_flag=True)
|
||||||
|
|
||||||
if result['error']['code'] != 0:
|
if result['error']['code'] != 0:
|
||||||
raise
|
raise Exception(_('Failed to get object count.'))
|
||||||
|
|
||||||
if result.get("data"):
|
if result.get("data"):
|
||||||
return result.get("data").get("COUNT")
|
return result.get("data").get("COUNT")
|
||||||
|
@ -348,7 +348,7 @@ class NaElement(object):
|
|||||||
if isinstance(na_element, NaElement):
|
if isinstance(na_element, NaElement):
|
||||||
self._element.append(na_element._element)
|
self._element.append(na_element._element)
|
||||||
return
|
return
|
||||||
raise
|
raise Exception(_('Failed to add child element.'))
|
||||||
|
|
||||||
def get_child_by_name(self, name):
|
def get_child_by_name(self, name):
|
||||||
"""Get the child element by the tag name."""
|
"""Get the child element by the tag name."""
|
||||||
|
Loading…
Reference in New Issue
Block a user