Skip to content

Commit 1bc3f65

Browse files
authored
Merge pull request avocado-framework-tests#2642 from AYUSHJAIN951/softwareraid
Handle Attribute not found error in teardown
2 parents 5ffe21f + e31914e commit 1bc3f65

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

io/disk/softwareraid.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,6 @@ def tearDown(self):
9494
"""
9595
Stop/Remove the raid device.
9696
"""
97-
if self.sraid:
97+
if hasattr(self, "sraid"):
9898
self.sraid.stop()
9999
self.sraid.clear_superblock()

0 commit comments

Comments
 (0)