Fix pylint raise-missing-from

Signed-off-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
Cole Robinson
2020-09-15 12:33:31 -04:00
parent 3238594028
commit 9fdbccec2b
9 changed files with 31 additions and 34 deletions

View File

@@ -299,6 +299,7 @@ class Command(object):
dom = conn.defineXML(domxml)
dom.undefine()
except Exception as e:
# pylint: disable=raise-missing-from
raise AssertionError("Bad XML:\n%s\n\nError was: %s: %s" %
(domxml, e.__class__.__name__, str(e)))