Merge "Fix AttributeError on BadRequest in scenario tests"
diff --git a/tempest/scenario/manager.py b/tempest/scenario/manager.py
index 207c542..2f28068 100644
--- a/tempest/scenario/manager.py
+++ b/tempest/scenario/manager.py
@@ -261,7 +261,8 @@
except Exception as e:
# If the resource is already missing, mission accomplished.
# add status code as workaround for bug 1247568
- if e.__class__.__name__ == 'NotFound' or e.status_code == 404:
+ if (e.__class__.__name__ == 'NotFound' or
+ hasattr(e, 'status_code') and e.status_code == 404):
continue
raise