Skip to content

Fix ProgressBoard label assignment to use None check instead of truth…#2705

Open
Veryyoung957 wants to merge 1 commit into
d2l-ai:masterfrom
Veryyoung957:fix-label-assignment
Open

Fix ProgressBoard label assignment to use None check instead of truth…#2705
Veryyoung957 wants to merge 1 commit into
d2l-ai:masterfrom
Veryyoung957:fix-label-assignment

Conversation

@Veryyoung957

Copy link
Copy Markdown

Fix ProgressBoard label assignment: replace truthiness check and broken self.x fallback

  • if not self.xlabel treated empty string "" as unset
  • self.x was undefined in ProgressBoard, causing AttributeError
  • Use explicit is not None checks instead

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.

1 participant