Skip to content

Commit 9b7fe3d

Browse files
committed
fix: avoid unbound attr error
1 parent c852dda commit 9b7fe3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

horde_sdk/generic_api/apimodels.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ def get_follow_up_failure_cleanup_request(self) -> list[HordeRequest]:
250250
if self.ignore_failure():
251251
return []
252252

253-
if self._cleanup_requests is not None:
253+
if hasattr(self, "_cleanup_requests") and self._cleanup_requests is not None:
254254
return self._cleanup_requests
255255

256256
cleanup_request_type = self.get_follow_up_failure_cleanup_request_type()

0 commit comments

Comments
 (0)