Skip to content

Fix/octopus crash#3903

Merged
springfall2008 merged 2 commits into
mainfrom
fix/octopus_crash
May 11, 2026
Merged

Fix/octopus crash#3903
springfall2008 merged 2 commits into
mainfrom
fix/octopus_crash

Conversation

@springfall2008
Copy link
Copy Markdown
Owner

No description provided.

Copilot AI review requested due to automatic review settings May 10, 2026 19:37
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes a crash in the Octopus Intelligent Devices flow by handling GraphQL responses where dispatch arrays are present but null, preventing iteration over None. This is a small reliability patch in the Octopus integration code path, along with a version bump in the main PredBat entrypoint.

Changes:

  • Bump PredBat version from v8.39.0 to v8.39.1.
  • Guard flexPlannedDispatches / completedDispatches parsing so None becomes an empty list before iterating.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
apps/predbat/predbat.py Version bump to v8.39.1.
apps/predbat/octopus.py Prevent crash when Octopus GraphQL returns null for dispatch arrays by defaulting to [].

@springfall2008 springfall2008 merged commit e5b764f into main May 11, 2026
5 checks passed
@springfall2008 springfall2008 deleted the fix/octopus_crash branch May 11, 2026 07:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants