Skip to content

Commit

Permalink
fix: avoid unbound attr error
Browse files Browse the repository at this point in the history
  • Loading branch information
tazlin committed Nov 24, 2024
1 parent c852dda commit 6f8138e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion horde_sdk/generic_api/apimodels.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ def get_follow_up_failure_cleanup_request(self) -> list[HordeRequest]:
if self.ignore_failure():
return []

if self._cleanup_requests is not None:
if hasattr(self, "_cleanup_requests") and self._cleanup_requests is not None:
return self._cleanup_requests

cleanup_request_type = self.get_follow_up_failure_cleanup_request_type()
Expand Down

0 comments on commit 6f8138e

Please sign in to comment.