Skip to content

Adding patch for error AttributeError: 'NoneType' object has no attri… #456

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions allure-python-commons/src/reporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,11 @@ def stop_before_fixture(self, uuid, **kwargs):
self._items.pop(uuid)

def start_after_fixture(self, parent_uuid, uuid, fixture):
self._items.get(parent_uuid).afters.append(fixture)
self._items[uuid] = fixture
try:
self._items.get(parent_uuid).afters.append(fixture)
self._items[uuid] = fixture
except:
self._items[uuid] = fixture

def stop_after_fixture(self, uuid, **kwargs):
self._update_item(uuid, **kwargs)
Expand Down